Maps: Difference between revisions

add Massachusetts Interactive Property Mapper
Add example of proper usage of GeoJson and service=leaflet
 
(2 intermediate revisions by the same user not shown)
Line 14: Line 14:


== Wiki Maps ==
== Wiki Maps ==
I've enabled the Maps extension. ( check <code>/opt/.deploy-meza/public/wikis/freephile/postLocalSettings.d/override.php
The Maps extension is included in [[Meza]]
</code>) 
 
See [https://github.com/ProfessionalWiki/Maps/blob/master/RELEASE-NOTES.md Release Notes]
 
 
however when I try to use it, all my maps are located in the middle of the Atlantic Ocean.  I tried setting up my Payment Account with Google, and reviewing the Dev Console for errors.
 


As of 2025-07-21, using v11.0.1 See [https://github.com/ProfessionalWiki/Maps/blob/master/RELEASE-NOTES.md Release Notes]


== Boston ==
== Boston ==
Line 28: Line 22:
{{#display_map:Boston, MA|width=400|height=300}}
{{#display_map:Boston, MA|width=400|height=300}}


== Trying a different map service: Leaflet ==
== Boston using the Leaflet map service==


{{#display_map:Berlin|width=400|height=300|service=leaflet}}
{{#display_map:Boston|width=400|height=300|service=leaflet}}


 
== Circles on Leaflet ==
I tried testing the new '[https://maps.extension.wiki/wiki/Displaying_Leaflet_maps#Circles circles]' feature for Leaflet maps below for ideas related to Disc Golf mapping.
Here's the new '[https://maps.extension.wiki/wiki/Displaying_Leaflet_maps#Circles circles]' feature for Leaflet maps (click to view Title and Description)
{{#display_map:circles=
{{#display_map:circles=
   Salisbury, MA:500;
   Salisbury, MA:500;
   Salisbury, MA:100~I am a title~And I am a description~green~0.7~10~blue~0.5
   Salisbury, MA:100~I am a title~And I am a description~green~0.7~10~blue~0.5
|service=leaflet
| zoom=14
| zoom=14
}}
}}
== Leaflet Maps using the GeoJson namespace ==
This map of Berlin is displayed here. But it is defined on the [[GeoJson:Berlin]] page (in GeoJson format)
<code><nowiki>{{#display_map: center=Berlin | geojson=Berlin}}</nowiki></code> '''tries''' to display the data on the (default for this wiki) Google service - but Google doesn't work with GeoJson, so it just shows a map of the 'place' Berlin.
{{#display_map: center=Berlin | geojson=Berlin}}
Compare that with:<br>
<code><nowiki>{{#display_map: center=Berlin | geojson=Berlin | service=leaflet }}</nowiki></code>
By specifying the correct service (Leaflet), we get the proper map of Berlin, '''and''' the GeoJson data also included in the display.
{{#display_map: center=Berlin | geojson=Berlin | service=leaflet }}




[[Category:Maps]]
[[Category:Maps]]