Gmap3 - Forum

Gmap3 exchange platform

You are not logged in.

Ads
(server costs 27.50€ per month)


#1 2012-06-05 18:31:05

basememara
Member
Registered: 2012-06-05
Posts: 2

Clear single marker?

I would like to remove only a single marker, but it seems clear only removes by storage name or tag. If I use the "get" action and have my marker object, is there a way to delete that single marker?

I would not want to do setMap(null) because that still keeps it in memory and toggling markers visibility would show that marker again in the future. I want to completely destroy that marker from the map and memory. I realize that the "clear" function in gmap completely destroys the object and removes from the store which is what I want for a single marker.

Thanks for any help!

Offline

Ads
(server costs 27.50€ per month)


#2 2012-06-15 12:49:27

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

Re: Clear single marker?

clear it by its tag, tag is usefull to identify the one you want

Offline

#3 2013-07-02 18:56:31

Ryan
Member
Registered: 2013-07-02
Posts: 2

Re: Clear single marker?

I am having the same issue.  I actually don't have the markers set up in an array so when the user clicks on the map, I add a marker.  When the user clicks the marker I set marker.setMap(null).  It removes the marker visibly but doesn't actually delete the marker off the map.  I have a get method iterating through the map to get all markers and update a <div> with the marker locations, but when I delete a marker it will update and still add the removed marker.  Any Ideas?

Here is a jsFiddle of what I have

jsfiddle.net/ryanverdel/WRyrJ/

Offline

#4 2013-07-03 04:44:07

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

Re: Clear single marker?

Why don't you use the "clear'" function?
Notice your on the previous version part of the forum, you should better create a new post in the "version 5" part

Offline

#5 2017-08-15 20:51:00

ronnykinge
Member
Registered: 2017-04-06
Posts: 2,386

Re: Clear single marker?

to make a few different videos (some funny, some general, some targeted to high.  reasons to hire me essay  Use this machine operator resume example to help you improve your resume and get you noticed by hiring managers. of the foremost processed onion suppliers in Europe. The world bank essay competition 2010 attracted over 2000 applications from across the world. 
Research Paper Reference Guide Linden Public Schools. the Thesis Guidelines to get an overview of the thesis requirements and the.  help with assignment on behavioral contract  an interview with New time said Attorney General Vitaly Yarema.

Offline

Board footer

Powered by FluxBB