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": 34.52552434275947,
                 "latitude": 45.28877480735224,
                 "longitude": 69.18545765085074,
                 "longitude": 10.376470527483207,
                 "zoom": 5.226904229915105
                 "zoom": 2.1519556723984246
             }
             }
         }
         }
     }
     }
}
}

Revision as of 20:48, 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= {{{zoom}}}
|width=400
}}


4) That's it

[Mark as patrolled]