[OpenLayers-Users] Rotation of a vector feature

Marc Jansen jansen at terrestris.de
Tue Jan 5 17:32:23 EST 2010


Hi Tim,

thanks for the quick fix!

Regards,
Marc


Tim Schaub schrieb:
> Marc Jansen wrote:
>   
>> Hi all,
>>
>> can anyone point me towards the documentation for the rotation of a 
>> vector feature?
>>
>>     
>
> Just added:
> http://trac.openlayers.org/changeset/9932
> http://trac.openlayers.org/changeset/9933
>
> Thanks for pointing out the missing docs.
>
> Tim
>
>   
>> It works fine if I have a vectorlayer with points and a stylemap like
>>
>> var directionsStyleMap = new OpenLayers.StyleMap(
>>   {
>>     "default": new OpenLayers.Style(
>>       OpenLayers.Util.applyDefaults(
>>         {
>>           externalGraphic: "./img/icon.png",
>>           graphicWidth: 20,
>>           graphicHeight: 20,
>>           graphicOpacity: 1,
>>           rotation: 45
>>         },
>>         OpenLayers.Feature.Vector.style["default"]
>>       )
>>     )
>>   }
>> );
>>
>> but I couldn't locate a documentation for the attribute "rotation" of a 
>> vector feature / its style. At least it is missing here:
>>
>> http://dev.openlayers.org/releases/OpenLayers-2.8/doc/apidocs/files/OpenLayers/Feature/Vector-js.html#OpenLayers.Feature.Vector.OpenLayers.Feature.Vector.style
>>
>> Is it missing there intentionally or is this a non-documented / non-API 
>> feature of the symbolizers? Or even a bug in the docs?
>>
>> Regards,
>> Marc
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>     
>
>
>   




More information about the Users mailing list