Demo VisualData 1.0 / Geolocation

Geolocation: Difference between revisions

From Wikisphere
Jump to navigation Jump to search
VisualData update
VisualData update
jsondata
Line 3: Line 3:
"Geolocation": {
"Geolocation": {
"geolocation": {
"geolocation": {
"latitude": 38.731867402360336,
"latitude": 48.18486182415933,
"longitude": -27.207651547736617,
"longitude": 16.41990752170878,
"zoom": 11.73662172988873
"zoom": 16.111811675438624
}
}
}
}
}
}
}
}

Revision as of 21:41, 24 November 2024

This page demonstrates the use of VisualData/Geolocation in conjunction with the Extension:Maps. (click the tab "Edit data" above to edit the related form)



It is composed by the following elements:

1) the schema Geolocation, which is of course createable/editable from here or here.

2) The data entered in the same action tab Edit data

3) The following parser function

{{#visualdataprint:{{FULLPAGENAME}}
|schema=Geolocation
|template=Geolocation map
|format=template
}}


The template Template:Geolocation map containing the call to the display_map parser function in the following form:

{{#display_map: {{{geolocation/latitude}}},{{{geolocation/longitude}}} 
|zoom= {{#expr: {{{geolocation/zoom}}} round 0 }}
|width=400
}}


4) That's it, enjoy the power of Maptiler combined with VisualData and the Maps extension.


See also


support & questions: support at topway.it

Download the latest version!