This is a migrated thread and some comments may be shown as answers.

Track on Map

3 Answers 123 Views
Map
This is a migrated thread and some comments may be shown as answers.
AngeIa AngeIa
Top achievements
Rank 1
AngeIa AngeIa asked on 19 Feb 2010, 05:47 AM
Всем привет.
Строю на карте трек (путь) автомобиля при помощи MapPolyline. Но в этом случае не видно направления движения. Есть ли инструменты, чтобы делать стрелочки на концах полилинии?
Второй вопрос: когда MapPolyline имеет более 1000 узлов (примерно пол-дня поездки автомобиля) при работе с картой (увеличение, перемещение) браузер начинает подтормаживать. Есть ли какие-то способы увеличения производительности большого кол-ва объектов на карте? Если смотреть в сторону DynamicLayer, то в примере приведенном в описании я не совсем поняла как с ним работать. Есть ли более понятные примеры по DynamicLayer?
Заранее благодарю.

3 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 24 Feb 2010, 05:59 PM

Hello AngeIa,

Thank you for the feedback.

Unfortunately the MapPolyline does not support built-in driving direction feature like to displaying arrows. We are planning to add this feature to future versions. Currently you can build arrows for each point with map polygons.
We will work on the performance for rendering of large objects such as poly line with a lot of points on the map. If the performance is critically issue than spring animation, then you can set the UseSpringAnimations to "false" to disable it. It should improve performance of map shapes rendering.
It seems the dynamic layer is not the best solution for your project. If you wish to hide the driving direction for low zoom levels, then use the attached ZoomRange property of the MapLayer.
The sample code is the following:

MapLayer.SetZoomRange(polyLine, new ZoomRange(15, 20));

К сожалению на данный момент MapPolyline не поддерживает визуализацию направления движения. Это будет лишь в будующих выпусках. Сейчас возможно лишь построение стрелочек с использованием MapPolygon.
Производительность прорисовки обьектов со многими точками мы еще будем дорабатывать. Пока в некоторой степени ее можно повысить лишь отказавшись от спринг-анимации. На RadMap cвойство UseSpringAnimations при этом должно быть установлено в "false".
Использование dynamic layer ничего не даст если количество точек будет таким же. Если Вы хотите скрыть MapPolyline на мелких масштабах карты - воспользуйтесь приведенным кодом. Там устанавливается видимость маршрута с 15-го по 20-й уровень увеличения.
Еще огромная к Вам просьба. Пожалуйста дополняйте свой вопрос и английской версией. Как Вы понимаете далеко не все участники форума знают русский. Неважно если это и будет перевод с помощью гугл переводчика. Зараннее спасибо.

All the best,
Andrey Murzov
the Telerik team


Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
AngeIa AngeIa
Top achievements
Rank 1
answered on 05 Mar 2010, 05:25 AM
Не получается вызвать метод SetZoomRange, в MapLayer такого метода нет. Может быть какое-то дополнительное пространство имен подключить?

It is impossible to cause method SetZoomRange, in MapLayer such method is not present. There can be any additional space of names to connect?
0
Accepted
Andrey
Telerik team
answered on 09 Mar 2010, 04:04 PM
Hello AngeIa,

Please check the version you use. The zoom range functionality is available from the Q1 2010 Beta. The CTP version does not have this feature.

Пожалуйста, посмотрите, что за версию RadMap вы используете. Функциональность с использованием ZoomRange стала доступна с версии Q1 2010 бета. CTP версия RadMap это не поддерживает.

Kind regards,
Andrey Murzov
the Telerik team


Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Map
Asked by
AngeIa AngeIa
Top achievements
Rank 1
Answers by
Andrey
Telerik team
AngeIa AngeIa
Top achievements
Rank 1
Share this question
or