[OpenLayers-Trac] Re: [OpenLayers] #3551: Moving label features may not work

OpenLayers trac-20090302 at openlayers.org
Thu Oct 20 02:22:17 EDT 2011


#3551: Moving label features may not work
--------------------------+-------------------------------------------------
 Reporter:  xiaoyuewanli  |       Owner:              
     Type:  feature       |      Status:  new         
 Priority:  minor         |   Milestone:  2.12 Release
Component:  general       |     Version:  2.11        
 Keywords:                |       State:              
--------------------------+-------------------------------------------------

Comment(by xiaoyuewanli):

 Yes I tried. It didn't work. Currently I have to destroy it and then re-
 add a new vector with the new lon and lat. So far so good with test data.
 But I reckon it will lag if more than 100 moving vehicles' GPS positons
 come in. :( So still I would like to optimzie it if you have better ideas.
 Markers layer works well. If I could add a text under the marker icon with
 Marker Layer not Vecto layer, that would be perfect.

 Replying to [comment:1 erilem]:
 > Note that the {{{Feature.Vector::move}}} function isn't part of the API.
 Have you tried setting new coordinates in your label feature's geometry
 and call {{{drawFeature(labelFeature)}}}?
 >
 > To me there's still no evidence that there's a bug in the library.
 >
 > PS : "Is this a bug?" is a poor ticket summary.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3551#comment:3>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list