Timeline for How to rotate marker or feature with OpenLayers?
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 14, 2022 at 12:18 | comment | added | Nordin Docent | Ah I see, the bearing info you get it from the GPS data. | |
Jun 14, 2022 at 12:09 | comment | added | Tarang Rathod |
what i am doing is that on every GPS pings data i create a new feature with new coordinate and set feature with new values like below and set it in the layer and finally layer to map. i have a method which do this layer create and set i just pass the feature return new Feature({ geometry: new Point(fromLonLat([element.lon, element.lat])), direction: element.direction, rno: element.routeNumber, utcTime: element.utcTime, })
|
|
Jun 14, 2022 at 11:57 | comment | added | Nordin Docent | Thnx! But how can I access the Feature object that has its coordination changed? Sorry for the stupid questions, but I try to understand the concept of OpenLayers, it's quite different from Apple's map on iOS framework. | |
Jun 14, 2022 at 11:42 | history | answered | Tarang Rathod | CC BY-SA 4.0 |