• Resolved chaosad2

    (@chaosad2)


    Hi,

    Can I change maps name in layerswitch shortcode ?

    example :

    If I use this shortcode :

    [layerswitch providers=”OpenStreetMap.France,CyclOSM,Thunderforest.Outdoors”]

    In Layerswitcher, I would like to show :

    OSM France
    CyclOSM
    Outdoors

    instead of

    OpenStreetMap.France
    CyclOSM
    Thunderforest.Outdoors

    Thanks !

    • This topic was modified 1 year, 12 months ago by chaosad2.
Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author hupe13

    (@hupe13)

    The names are defined by leaflet-providers. I don’t know if and how I can change this.

    Plugin Author hupe13

    (@hupe13)

    Maybe it is possible. I’ll put it on the wish list.

    Thread Starter chaosad2

    (@chaosad2)

    Hi,

    I tried to add “tiles” in layerswitch with this code :

    [layerswitch tiles=”OSM-France,Cyclo,Randos,VTT,Ski” providers=”CyclOSM,GeoportailFrance.plan,GeoportailFrance.orthos,GeoportailFrance.parcels,Thunderforest.Outdoors”]

    In switcher, I can see each maps from “providers”, but just the first one in “tiles”.

    Can I use more of one map with tiles ?

    If I order maps differently in “tiles”, (ex : “Cyclo” first) I can always see the first one again (-> Cyclo).

    Plugin Author hupe13

    (@hupe13)

    tiles and providers are differently. It has historical reasons. First, I would like to use more than on tile server. Then I found Leaflet Providers. I will try to make this easier to use.

    Plugin Author hupe13

    (@hupe13)

    If you do not want to wait for the next version (3.4.4), you can test the Github version.

    [-leaflet-map mapid="..."]
    

    [layerswitch mapids="OSM_France,CyclOSM,Outdoors" providers="OpenStreetMap.France,CyclOSM,Thunderforest.Outdoors"]

    Thread Starter chaosad2

    (@chaosad2)

    Tested… and approved !

    Thanks !

    Plugin Author hupe13

    (@hupe13)

    3.4.4 is released.

    Hi, is it possible to change the default map? I want MtbMap as default map instead of OSM and WaymarkedTrails.hiking as default selected layer.

    Thanks

    Plugin Author hupe13

    (@hupe13)

    The default map can be changed in Leaflet Map setting: https://your-domain.tld/wp-admin/admin.php?page=leaflet-map

    Plugin Author hupe13

    (@hupe13)

    P.S. Please open a new thread, this question is resolved.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Change maps name in layerswitch’ is closed to new replies.