<?xml version="1.0" encoding="utf-8"?>
<Application>
	<AppTitle>Untitled Application</AppTitle>
	<AppShortName>MyApp</AppShortName>
	<Author>Author name</Author>
	<Version>1.0</Version>
	<DesignDeviceName>Desktop</DesignDeviceName>
	<VariablesScanned>False</VariablesScanned>
	<PageWidth>1280</PageWidth>
	<PageHeight>800</PageHeight>
	<AutoSizeWidth>True</AutoSizeWidth>
	<AutoSizeHeight>True</AutoSizeHeight>
	<HideScrollbars>False</HideScrollbars>
	<ResponsiveSize>False</ResponsiveSize>
	<PublishPlatform>WebApp</PublishPlatform>
	<EmptyBuildFolder>False</EmptyBuildFolder>
	<AppIcon>C:\Users\rocco\Documents\VisualNeoWeb\Libraries\img\default-icon.png</AppIcon>
	<LanguageCode>en</LanguageCode>
	<DisplayMode>standalone</DisplayMode>
	<ServiceWorker>Offline page</ServiceWorker>
	<ThemeColor>#000000</ThemeColor>
	<PwaScope>/</PwaScope>
	<MobileOSTypes>[AndroidOS,iOS,WindowsPhoneOS]</MobileOSTypes>
	<WindowState>normal</WindowState>
	<TitleBar>True</TitleBar>
	<Sizeable>True</Sizeable>
	<MaximizeBtn>False</MaximizeBtn>
	<MinimizeBtn>True</MinimizeBtn>
	<SystemMenu>True</SystemMenu>
	<ContextMenu>False</ContextMenu>
	<AlwaysOnTop>False</AlwaysOnTop>
	<ShowInTaskbar>True</ShowInTaskbar>
	<SingleInstance>False</SingleInstance>
	<ChromeKioskMode>False</ChromeKioskMode>
	<startup>.inizializzazione mappa
SetVar [maptype] &quot;Esri World Imagery&quot;
setvar [mapzoom] 3
setvar [initialLat] 41.89049912122376
setvar [initialLon] 12.489952770410898
neoMapInitialize &quot;Container_eventMap&quot; [initialLat] [initialLon] [mapzoom] 20 &quot;[maptype]&quot;</startup>
	<Components>
		<FunctionList name="Subroutines">
			<Components>
				<Function name="load_ok">
					<Code>setvar [Eventi] [data]
StrReplace &quot;[Eventi]&quot; &quot;/Km&quot; &quot;&quot; [Eventi] &quot;&quot;

setvar [numEventi] 0

.conto il numero di eventi con neoscipt
StrParse &quot;[Eventi]&quot; &quot;\n&quot; [arrEventi]
ArrayLen [arrEventi] [numEventi]
Math &quot;[numEventi]-1 &quot; -1 [numEventi]

beginjs
 $(&quot;*&quot;).css(&quot;cursor&quot;, &quot;&quot;)
endjs</Code>
					<Params>[data]|STRING|</Params>
				</Function>
				<Function name="load_ko">
					<Code>jsalert &quot;error&quot;</Code>
				</Function>
				<Function name="updateEventMap">
					<Code>.........................................................................................................
. AGGIORNAMENTO DEGLI EVENTI SUALLA MAPPA
.........................................................................................................
neoMapGetZoom &quot;Container_eventMap&quot; [mapzoom]
neoMapGetCenterPosition &quot;Container_eventMap&quot; [centerLat] [centerLon]

...ricostruzione mappa
neoMapRemove &quot;Container_eventMap&quot;
neoMapInitialize &quot;Container_eventMap&quot; [centerLat] [centerLon] [mapzoom] 20 &quot;[maptype]&quot;

StrReplace &quot;[Eventi]&quot; &quot;#&quot; &quot;&quot; [Eventi] &quot;&quot;
CsvToJSON [Eventi] &quot;|&quot; [jsonEventi]
setvar [filteredEvents] [jsonEventi]

.LETTURA NUMERO EVENTI LEGGENDO IL NUMERO DI ELEMENTI NEL JSON [filteredEvents]
setvar [numEventi] 0
beginJS
       $App.numEventi = Object.keys($App.filteredEvents).length;
endJS

.aggiunta degli eventi sulla mappa
LoopObject [p] [filteredEvents]
    SetVar [eventID] [filteredEvents([p]).EventID]

    SetVar [time] [filteredEvents([p]).Time]
    StrParse &quot;[time]&quot; &quot; &quot; [timeAndHour]
    SetVar [time] [timeAndHour(0)]
    SetVar [hour] [timeAndHour(1)]
    ...SetVar [hour] [filteredEvents([p]).Hour]

    SetVar [magType] [filteredEvents([p]).MagType]
    SetVar [mag] [filteredEvents([p]).Magnitude]
    StrReplace &quot;[mag]&quot; &quot;,&quot; &quot;.&quot; [mag] &quot;&quot;

    SetVar [lat] [filteredEvents([p]).Latitude]
    StrReplace &quot;[lat]&quot; &quot;,&quot; &quot;.&quot; [lat] &quot;&quot;
    SetVar [lon] [filteredEvents([p]).Longitude]
    StrReplace &quot;[lon]&quot; &quot;,&quot; &quot;.&quot; [lon] &quot;&quot;

    SetVar [depth] [filteredEvents([p]).Depth]
    SetVar [eventLocation] [filteredEvents([p]).EventLocationName]

     .CALCOLO DELLA DIMENSIONE (IN BASE ALLA MAGNITUDO) DEL CERCHIO CHE RAPPRESENTA L&apos;EVENTO
     SetVar [dimCircle] [mag]*1000
     SetVar [opacity] 0.8

     Math &quot;2+([mag]/2)^2&quot; 0 [raggioCerchioMarker]
    
     neoMapAddCircleMarker &quot;Container_eventMap&quot; &quot;&quot; [lat] [lon] [raggioCerchioMarker] &quot;gray&quot; &quot;cyan&quot; 0.8 &quot;&lt;div style=&apos;color:gray;font-family:Arial;font-size:12px;&apos;&gt;&lt;font color=&apos;red&apos;&gt;&lt;b&gt;EVENT&lt;/b&gt;&lt;/font&gt; &lt;br&gt;ID: &lt;font color=&apos;blue&apos;&gt;&lt;b&gt;[EventID]&lt;/b&gt;&lt;/font&gt; &lt;br&gt;Event on &lt;font color=&apos;blue&apos;&gt;&lt;b&gt;[Time]&lt;/b&gt; &lt;/font&gt; Time: &lt;font color=&apos;blue&apos;&gt;&lt;b&gt;[Hour]&lt;/b&gt;&lt;/font&gt; &lt;br&gt; Location: &lt;font color=&apos;blue&apos;&gt; &lt;b&gt;[eventLocation]&lt;/b&gt; &lt;/font&gt; &lt;br&gt; Magnitude: &lt;b&gt; &lt;font color=&apos;blue&apos;&gt; [MagType] [mag]&lt;/font&gt; &lt;/b&gt; &lt;br&gt;  Lat: &lt;font color=&apos;blue&apos;&gt; &lt;b&gt; [Lat] &lt;/b&gt; &lt;/font&gt; Lon: &lt;font color=&apos;blue&apos;&gt; &lt;b&gt; [Lon] &lt;/b&gt; &lt;/font&gt; &lt;br&gt; Depth: &lt;font color=&apos;blue&apos;&gt; &lt;b&gt; [depth] Km&lt;/b&gt; &lt;/font&gt; &lt;br&gt; &lt;a href=&apos;http://terremoti.ingv.it/event/[EventID]&apos; target=&apos;_blank&apos;&gt; ▶ link to event&apos;s page on terremoti.ingv.it portal &lt;/a&gt;&lt;/div&gt; &quot;
    
EndLoop

beginjs
   $(&quot;*&quot;).css(&quot;cursor&quot;, &quot;&quot;)
endjs


.evento per la visualizzazione delle coordinate del cursore sulla mappa
.neoMapEvent &quot;Container_eventMap&quot; &quot;mousemove&quot; &quot;_showPositionOnMap&quot;
.neoMapEvent &quot;Container_eventMap&quot; &quot;click&quot; &quot;_clickOnMap&quot;</Code>
				</Function>
			</Components>
		</FunctionList>
		<LibraryList name="Libraries"/>
		<PageList name="Main">
			<Components>
				<Page id="NewPage">
					<Components>
						<Container id="Container_eventMap">
							<left>874px</left>
							<top>98px</top>
							<width>401px</width>
							<height>595px</height>
							<style>background-color:#fff;border-color:#E0E0E0;border-style:solid;border-width:1px</style>
						</Container>
						<TextArea id="TextArea1">
							<left>14px</left>
							<top>97px</top>
							<width>853px</width>
							<height>594px</height>
							<style>font-size:8pt</style>
							<variable>[Eventi]</variable>
						</TextArea>
						<PushButton id="PushButton1">
							<left>18px</left>
							<top>27px</top>
							<width>90px</width>
							<height>38px</height>
							<caption>Load</caption>
							<click>beginjs
 $(&quot;*&quot;).css(&quot;cursor&quot;, &quot;wait&quot;)
endjs

setvar [Eventi] &quot;&quot;
neoAjaxLoad &quot;https://webservices.ingv.it/fdsnws/event/1/query?starttime=2021-01-01T00%3A00%3A00&amp;endtime=2021-12-31T23%3A59%3A59&amp;minmag=-1&amp;maxmag=10&amp;mindepth=-10&amp;maxdepth=1000&amp;minlat=-90&amp;maxlat=90&amp;minlon=-180&amp;maxlon=180&amp;minversion=100&amp;orderby=time-asc&amp;format=text&amp;limit=15000&quot; &quot;text&quot; &quot;load_ok&quot; &quot;load_ko&quot;</click>
						</PushButton>
						<PushButton id="PushButton2">
							<left>870px</left>
							<top>38px</top>
							<width>92px</width>
							<height>37px</height>
							<caption>Plot</caption>
							<click>beginjs
 $(&quot;*&quot;).css(&quot;cursor&quot;, &quot;wait&quot;)
endjs

wait 200
   updateEventMap
endwait</click>
						</PushButton>
						<Paragraph id="Paragraph1">
							<left>155px</left>
							<top>34px</top>
							<width>300px</width>
							<height>31px</height>
							<text>Num Eventi: [numEventi]</text>
						</Paragraph>
					</Components>
				</Page>
			</Components>
		</PageList>
		<PageList name="Master">
			<Components>
				<Page id="MasterPage"/>
			</Components>
		</PageList>
		<PageList name="Dialog">
			<Components>
				<Page id="NewDialog">
					<Components>
						<DialogContainer id="DialogContainer1">
							<left>0px</left>
							<top>0px</top>
							<width>1280px</width>
							<height>800px</height>
							<close_button>False</close_button>
							<kind>custom</kind>
						</DialogContainer>
					</Components>
				</Page>
			</Components>
		</PageList>
	</Components>
</Application>
