Size: a a a

2020 May 10

A

Andrew in Mapbox чат
it is only map style
источник

A

Andrew in Mapbox чат
not depends on platform
источник

AM

Alberto Martin in Mapbox чат
I need rotate marker by Code
источник

A

Andrew in Mapbox чат
wait a second
источник

AM

Alberto Martin in Mapbox чат
With animación
источник

AM

Alberto Martin in Mapbox чат
Animation
источник

A

Andrew in Mapbox чат
yeah i saw example
источник

A

Andrew in Mapbox чат
источник

A

Andrew in Mapbox чат
Alberto check this
источник

A

Andrew in Mapbox чат
function animate() {
// Update point geometry to a new position based on counter denoting
// the index to access the arc.
point.features[0].geometry.coordinates =
route.features[0].geometry.coordinates[counter];

// Calculate the bearing to ensure the icon is rotated to match the route arc
// The bearing is calculate between the current point and the next point, except
// at the end of the arc use the previous point and the current point
point.features[0].properties.bearing = turf.bearing(
turf.point(
route.features[0].geometry.coordinates[
counter >= steps ? counter - 1 : counter
]
),
turf.point(
route.features[0].geometry.coordinates[
counter >= steps ? counter : counter + 1
]
)
);

// Update the source with this new data.
map.getSource('point').setData(point);

// Request the next frame of animation so long the end has not been reached.
if (counter < steps) {
requestAnimationFrame(animate);
}

counter = counter + 1;
}
источник

A

Andrew in Mapbox чат
is this what you need?
источник

AM

Alberto Martin in Mapbox чат
Yes , but for iOS
источник

A

Andrew in Mapbox чат
oh sorry i miss that ((
источник

AM

Alberto Martin in Mapbox чат
In iOS not exist rotation with animation
источник

AM

Alberto Martin in Mapbox чат
Si not easy
источник

A

Andrew in Mapbox чат
sorry I only worked with GL JS
источник

AM

Alberto Martin in Mapbox чат
I have 5 Day in this
источник

f

fr1 in Mapbox чат
а какая разница. там весь смысл, что меняют в данных на какой угол повернуть. а по данным карта сама всё отображает. работать должно везде
источник

A

Andrew in Mapbox чат
fr1
а какая разница. там весь смысл, что меняют в данных на какой угол повернуть. а по данным карта сама всё отображает. работать должно везде
по идее да
источник

AM

Alberto Martin in Mapbox чат
fr1
а какая разница. там весь смысл, что меняют в данных на какой угол повернуть. а по данным карта сама всё отображает. работать должно везде
источник