I edited my "Map preset View style Earth" to show layers.
For that I allowed "Layers" option in selection listed here :
/admin/gmaps/map/9/edit#accordion-gmaps-map-form-accordion-methods

Result is that now displays Wikipedia and Panoramio layers over my GMaps.
Great !!

But could it be possible to allow user to enable or disable it.
Something like "Extras" button on this page : http://maps.google.fr/maps?hl=fr&tab=wl
As you can see we can enable or disable : photos videos wikipedia webcams

Comments

srobert72’s picture

Title: Add button layers on Gmaps » Add button for activate/desactivate layers on Gmaps

Another example here with a "More..." button :
http://econym.org.uk/gmap/example_layercontrol.htm

srobert72’s picture

On gmaps-utility-library-dev site I found a new version of ExtMapTypeControl.js.
I suppose it could really simplify this feature request.
See http://drupal.org/node/681340#comment-2502884

xmarket’s picture

Status: Active » Closed (fixed)
srobert72’s picture

Thank you Xmarket,
I'm waiting for new build released, just a question of hours.
Really impatient to test it.

A little mistake in your CSV comment, but I'm not sure it could be updaded now.
This commit : http://drupal.org/cvs?commit=323766
Not relative to issue #650538 but #680538
It could make confusion, but it's not a big problem.

srobert72’s picture

Status: Closed (fixed) » Active

Hi Xmarket,

First, thank you very much for your wonderfull work.
And thank you for this implementation of my feature request.

I've just tested it and I have a little problem.
"More" button appears. But it can only disable layers it have enabled itself.
We can't disable layers enabled in "Map preset settings" configuration page.

In "Map preset settings" configuration page we can't disable all layers.
We have error message : "Neither Panoramio and Wikipedia layers are enabled."
Why is it not allowed to disable all layers ?

I would like to show map with no layer.
Map contains "More" button filled with layers options that have been enabled in "Map preset settings".
These options are unchecked.
And final user could activate what he wants.

Sorry if my explanations are not very clear.
Don't hesitate to ask me further informations.

xmarket’s picture

The Layers method is completly independent from the Extended map type control, thus, you should disabled the method.

If you use both of them on the same map, then both of them add their own layer instances to the map, so you'll have each layer twice.

Conceptually, you can use the layer method in situations where you don't have space for the control (f.e. in a thin CCK block), and you should use the control in all other one.

xmarket’s picture

Status: Active » Fixed
srobert72’s picture

OK I'll do this way.

Thank you very much for your response and all your work.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.