[OpenLayers-Dev] adding markers with popups as features.
eric.c2c at gmail.com
Fri Aug 22 03:35:02 EDT 2008
On Thu, Aug 21, 2008 at 11:51 PM, Fred Arters <fred at monkeytroy.com> wrote:
> Thanks for the advice. I have it working now using Vector with an
> externalSymbol style as you suggest. Seems to work fine and a bit cleaner
> as I don't have to add a separate pop up and marker for each feature.
> Though I do have a question... what would be the correct way to then move
> one of my marker as a vector? For a feature all I had to do was set the
> lonlat attribute and refresh the layer and it moved.. but that doesn't seem
> to work with a Vector. The documentation says there is a move function but
> it fails and looking at the code does not seem to be there.
Doing feature.move(px) or feature.move(lonlat) should work. Both the
Feature.Vector and Geometry.Point classes include move methods. If
that doesn't work, please come back with a simple example.
> I didn't see it but is there an example that does this too?
No that I'm aware.
More information about the Dev