[OpenLayers-Users] Offset parameter for named graphic in Feature.Vector
borlafu
borlafu at gmail.com
Mon Oct 8 03:10:26 PDT 2012
I have the exact same issue.
I'm using a Layer.Vector layer with Feature.Vector features. Those features
are styled with parameterized StyleMap.
My features should be represented as pseudo-triangles, with one of the
vertices on the actual geographic location, and the rest of the triangle
representing the azimuth. The triangle aperture is not important at the
moment, but may be useful as well in the future.
In my use case, most of the times (not always) I'm drawing 3 features in the
exact same location but with different azimuths (ie. north, south-east,
south-west). I can do it by using an external graphic, but I lose the
ability to map some other parameters to the stroke and fill colors, or the
graphic size.
Here you have an example of use based on the named graphics example:
http://jsfiddle.net/DbCgt/361/
As you can see, the second named shape is "tricked" to make the actual
graphic centroid the one I want, but looks really ugly.
Is there any possibility to add the graphic offset option for named
graphics?
-Borja
Vito Tafuni-2 wrote
> is there a way to specify an Offset for a Feature.Vector graphic
> when using the graphicName parameter??
>
> I've tryed the graphicXOffset but it seems to work only for
> externalGraphic!
>
>
> -Vito-
>
> -----------
> Tafuni Vito
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Offset-parameter-for-named-graphic-in-Feature-Vector-tp3927874p5007092.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list