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": 48.199432086207054,
                 "latitude": 40.394960365202394,
                 "longitude": 9.173033933777958,
                 "longitude": 74.13338216157695,
                 "zoom": 4.091177626345638
                 "zoom": 4.260342783895178
             }
             }
         }
         }
     }
     }
}
}

Revision as of 21:30, 18 February 2024

This page demonstrates the use of VisualData/Geolocation in conjunction with the Extension:Maps.



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 
|format=template 
|template?geolocation=Geolocation map
}}


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

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

Note that the printouts geolocation/latitude, geolocation/longitude and geolocation/zoom (visible here) are accessible through the only property name since the template is applied within the subitem geolocation through the following parameter:

|template?geolocation=Geolocation map


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


See also

[Mark as patrolled]