How to Integrate Stadia Maps with the LeafletJS plugin for WordPress¶
Free
Starter
Standard
Professional
This document will walk you through the process of setting up the Leaflet Map
plugin on your WordPress website,
replacing the default map tiles to Stadia Maps raster tiles.
You will then need to add your WordPress domain to your account in the
client dashboard.
You can find out more about how we authenticate requests
in the Authentication & Limits documentation.
To test your Leaflet Map plugin, create a new Page/Post, and paste the following
shortcodes:
[leaflet-map height=300 width=400 lat=50.3340981 lng=6.9426625 zoom=13]
[leaflet-marker lat=50.3340981 lng=6.9426625]Nürburgring: Motor racing
complex with 1930s & Grand Prix circuits, for competition & driving
experience program.[/leaflet-marker]
This will create a map with a marker pointing to the Nürburgring. If
you've configured everything correctly, when you Preview your entry, you
will see the following map on your WordPress site:
Now you are all set! You can modify the example [leaflet-map] and
[leaflet-marker] shortcodes for your own needs. Congrats! You're
now well on your way to spicing up your WordPress site with Stadia Maps.