[OpenLayers-Users] add an arrow to line feature

Rossko rossko at culzean.clara.co.uk
Wed Jul 14 17:26:36 EDT 2010


>  function setRadius(){ // this functions gets called everytime the map is
panned or zoomed
>         try{
>          radii= map.getZoom();

I wonder what the value of 'radii' would be before any pan/zoom takes place.

> var lineFeature = new OpenLayers.Feature.Vector(gc,{datetime : "some
> text",radius : radii },style_line);

Once set here, the 'radius' attribute won't be updated on pan/zoom.
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/add-an-arrow-to-line-feature-tp5234002p5294880.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list