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

Scale ElementFrameWork

1 Answer 69 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 12 Feb 2010, 11:01 AM
Всем привет.
Не знаю как сказать это по-английски, поэтому пишу по-русски, если можете - переведите.
Мне нужно чтобы MapPinPoint, Line и другие, размещенные в InformationLayer-е увеличивались вместе с увеличением карты и уменьшались вместе с уменьшением. Как это можно сделать?

All greetings.
I need to MapPinPoint, Line and others, placed in InformationLayer increased with the increase of maps and decreases with the decrease. How can I do?



1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 16 Feb 2010, 06:12 PM

Hi AngeIa,

The CTP version of RadMap does not contain built-in functionality for scaling framework elements according to map zoom level.
The 2010.Q1 beta that will be available later this week will contain the MapLayer.BaseZoomLevel attached property. It could be used to set up base zoom level for any framework element (MapPinPoint as well). The objects on the Information Layer will have original size for this zoom level and higher. For zoom levels that are smaller than the base one, the size of the controls will be decreased.
When base zoom level is set to 15, the framework elements will have original size for zoom levels 15, 16, 17 and so on. For zoom levels 14, 13, 12 and so on the size of the framework elements will be decreased.
This feature does not work for map shapes (classes inherited from MapShape class).

Текущая версия CTP RadMap не содержит функциональности для масштабировния framework элементов на карте согласно ее текущему масштабу.
В версии 2010.Q1 beta, которая будет выпущена на этой неделе, будет дополнительное свойство - MapLayer.BaseZoomLevel. Оно задает ZoomLevel начиная от котрого и больше Scale = 1 для трансформации.
Т.е. если базовый уровень для элемента поставить 15, то для него и далее (16, 17 и т.д.) объект будет иметь оригинальный размер. Для уровней 14, 13, 12 и т.д. в сторону уменьшения объект будет уменьшаться.
Это свойство работает для всех, наследуемых от FrameworkElement классов, включая и MapPinPoint.
Для классов, наследуемых от MapShpe (MapEllipse, MapLine, MapPolygon, MapPolyline и т.п.) это свойство не поддерживается, так как они изменяют размеры от своих географических координат или указанных размеров.

Sincerely yours,
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
Share this question
or