Closed (fixed)
Project:
IP Geolocation Views & Maps
Version:
7.x-1.27
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
10 Jul 2015 at 17:25 UTC
Updated:
13 Jul 2015 at 22:33 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
rdeboerYes, see http://regionbound.com/coffee-prices-across-melbourne, upper right corner, the so-called "Layer switcher".
You determine the maps that are available for selection via the Leaflet More Maps configuration page. You can choose any of the base maps for inclusion in the Layer Switcher.
Rik
Comment #2
kinmen commentedActually the Layer switcher doesn't always appear (not with google for ex., yes with yandex). I didn't understand well if that is used just to switch from a layer to another of the same map provider (road view / satellite / etc) or if you can switch the map provider too, which is what I try to accomplish under a visitor / user point of view.
Under admin/config/system/leaflet_more_maps there are 3 "Custom map #1 layer selection
" forms"; in the first I've flagged all the maps, kept the form empty, reload the view (cleaned the browser's cache) but I still can't see the switcher in the upper corner; if i put the name of the view in that form, still having all the maps flagged, I get the same result: no layer switcher.
Thank you for the help
K.
Comment #3
rdeboerHi K.,
You found the correct configuration page, but are using it incorrectly.
The way it works is you select as many maps as you want (maybe not all of them though) to make available to the end-user from the column of tick boxes under "Custom Map #1 Layer Selection". Then don't forget to fill out a name (anything you like, does not need to be the name of the View) under "Name of custom map #1 in the admin UI". HIt save.
Now you have a new map that can be selected in the Views UI. In the example in the screenshots this map with all its layers is called "RegionBound". Select that from the drop-down in the VIews UI (2nd screenshot) and it will come up with the layer switcher.
Comment #4
rdeboerComment #5
kinmen commentedAhhhh... Now I understood! I didn't get that those settings were used to create a kind of "all layers box" to apply over the view instead of selecting a single map provider. Thanks a lot. Regards
Kinmen
Comment #6
rdeboerAll good!
Rik
Comment #7
rdeboer