How to remove marker?

8 views
Skip to first unread message

Іван Ковбас

unread,
Sep 18, 2012, 7:13:55 PM9/18/12
to ti...@googlegroups.com
Hi,
How can I remove some markers.
For example:

var marker1 = map.layer('markers').create('marker', {
    xy: '-27.4695 153.0201',
    imageUrl: 'img/square-marker.png',
    markerType: 'image'
});
var marker2 = map.layer('markers').create('marker', {
    xy: '-28.4695 154.0201',
    imageUrl: 'img/square-marker.png',
    markerType: 'image'
});

How can I remove marker1 only?

Damon Oehlman

unread,
Sep 18, 2012, 7:38:27 PM9/18/12
to ti...@googlegroups.com
It's been a long while since I've looked at the library, but I've gone through the source now and have to admit it seems that I never implemented a way to remove a single marker from a layer.  This seems really strange, so I'll have another look tonight.

In general, I advise people to use other more stable libraries for their mapping libraries (such as Leaflet) as Tile5 isn't getting a lot of attention at the moment.  That said, if it suits your needs more than other libraries then let me know and I may spend more time on it if it makes a difference to people.

Cheers,
Damon.
--
Damon Oehlman
http://distractable.net/

Reply all
Reply to author
Forward
0 new messages