Gmap3 - Forum

Gmap3 exchange platform

You are not logged in.

Ads
(server costs 27.50€ per month)


#1 2012-04-24 09:31:53

xopqr
Member
Registered: 2012-04-21
Posts: 5

Overlay and tag

Hi.

I'm trying to create an overlay with a tag, in order to hide all the overlays with a specific tag. I'm doing something like this :

this.$div.gmap3({
action:'addOverlay',
latLng: event.latLng,
content: mycontent,
tag: 'my_tag'
});

When i'm trying to use this, no overlay appears, and there is no error. if i remove the tag option, my overlay appears correctly. I saw the post which is talking about the same issue, but no solution was given. I tried to add a limit to the menu.close(), like this :

this.$div.gmap3({action:'clear', name:'overlay', tag:'menu_tag'});

But if i put the tag:'menu_tag' to my menu overlay, my menu doesn't work anymore...Is it a bug, or putting a tag on an overlay must be done in a specific way?

Thx for help.

Offline

Ads
(server costs 27.50€ per month)


#2 2012-04-25 18:04:57

jbdemonte
Administrator
From: Pourrières, France
Registered: 2011-11-21
Posts: 580

Re: Overlay and tag

Hi,
If you add the tag, content have to be in options block, try :

this.$div.gmap3({
    action:'addOverlay',
    latLng: event.latLng,
    options:{
        content: mycontent
    },
    tag: 'my_tag'
});

It will be cleaner in the next version

Offline

#3 2012-04-26 08:38:22

xopqr
Member
Registered: 2012-04-21
Posts: 5

Re: Overlay and tag

It works perfectly, thank you!

Offline

#4 2012-07-22 03:23:05

artotal
Member
Registered: 2012-07-09
Posts: 5

Re: Overlay and tag

Hi,
I don't have lat, longitude.
I have adress : 44 rue Taitbout, Paris, France.
Can I add a circle overlay ?
Thank you.

Offline

#5 2013-05-07 18:45:07

cyberholic
Member
Registered: 2013-05-07
Posts: 11

Re: Overlay and tag

can you post how you did the show-hide solution? i am searching for something like that but having a lot of problems in making a DIV click communicate to one of the overlays sad

Offline

Board footer

Powered by FluxBB