How to control the leaflet tileLayers used by the plugin

75 views
Skip to first unread message

vpl

unread,
May 4, 2017, 5:17:53 AM5/4/17
to TiddlyWiki
Hi,

The plugin documentation (http://sycom.github.io/TiddlyWiki-Plugins/#Leaflet%20plugin) explain how to add/remove tileLayers by updating the  tileLayers.json i

But I can't find the way to decide which tileLayer is used for a given  <$leafmap> Map

Any idea ?

Thanks for your help

Regards

Vpl

SylvainComte

unread,
May 18, 2017, 9:00:32 AM5/18/17
to TiddlyWiki
Hello,

well the author of this documentation made a very bad job I guess ;-)

As specified in the usage tab of the plugin, you have to use the tile attribute with the number or the id of the layer :

<?leafmap  tile='natgeo' (...) />


or

<?leafmap  tile='2' (...) />

hope this helps

cheers

Sylvain 
Reply all
Reply to author
Forward
0 new messages