Public Lab Wiki documentation



Inline maps

This is a revision from December 11, 2019 18:39. View all revisions
2 | 18 | | #14171

« Back to Power Tags

A brief guide to embedding maps on PublicLab.org pages.

Note: these work normally when in a post, or when there is only one per page. We are debugging the issues on this page where we have many maps at once. Thanks!

Inline maps are a form of inline power tags which you can read more about on the power tags page. These will display any content tagged with lat:____ and lon:____ tags showing location, near the provided coordinates.

Basic usage is with [map:content:_latitude_:_longitude]; for example:

[map:content:29.9:-90.0] gets you:

[map:content:40.7:-73.9] gets you:

A good place to quickly find lat/lon for any place is http://osm.org (the URL will change as you pan around).

Zoom level

Note how if you specify more precise numbers (more digits), it doesn't search as widely. Also, the precision sets the zoom level of the map, so shorter (less precise) coordinates make for a more zoomed-out map.

[map:content:40.70:-73.90]

Maps with preset layers

This syntax can be used to show layers from Leaflet Environmental Layers in an embedded map:

[map:layers:content:41.7:-71.5:Unearthing,toxicReleaseLayer]

Tag-filtered maps

This type of inline map shows only content tagged with a given tagname. It follows the format [map:tag:_tagname_:_latitude_:_longitude]. For example:

[map:tag:infragram:43:-71] shows only nodes tagged with infragram.

Questions on a topic near a place

(we don't currently have a lot of questions tagged with locations, but if we add some it'll work)

[map:tag:question:infragram:43:-71]

People maps

Share your own location on your profile. Learn about privacy