Hi, I solved a similar issue with a different approach: When clicking onto the map the old marker was removed from its layer and a new one was set. For my luck, there was always only one marker in the layer.
- Carsten Am 05.11.2011 00:58, schrieb Jongsuk Lee: > Hi, I am using 2.1.1 release library and I am using with bing layer. > I am trying to do marker to move according to user's mouse click. > So old marker should move accroding to new click location. I am using > moveTo method in marker object. > This seems to work fine when I change zoom but once I pan viewport, > position gets hairy. > Do I have to keep track of pan viewport movement and offset il? > am I not understanding api correctly? I tried on ie9 and latest chrome > and that shows same behavior. > > > Any tips would be appreciated. Thanks for awesome library. > > jong. > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
