[OpenLayers-Users] Basic marker questions
Alexandre Dube
adube at mapgears.com
Tue May 4 14:56:47 EDT 2010
Hey Mike,
See below :
Mike Purvis wrote:
> My markers are effectively just little square and round tokens. Should
> I render them using the SVG abilities of Layer.Vector, or should I use
> a graphics program to make them as PNG icons?
It's up to you. Both are okay IMHO.
> I need to be able to rotate them—does that affect anything?
http://www.openlayers.org/dev/examples/styles-rotation.html
>
> Also, it seems like the coordinates of Layer.Vector are with respect
> to latitude and longitude rather than the viewport—how would I make my
> markers size the same independent of zoom level?
It's already the case, see in the same example above (try zooming,
you'll see that the markers remain the same size).
>
> Finally, in my initial tests, it seems that the vector shapes
> experience a lot of "drift" as I drag the map around. My application
> requires that they be pretty precisely fixed—is there a way to crank
> up the precision on this?
This shouldn't be the case, could it be related to this (wild guess):
http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#WhydontmyvectorfeaturesworkoverGoogleYahooVirtualEarthetc.
--
Alexandre Dubé
Mapgears
www.mapgears.com
More information about the Users
mailing list