Telerik Forums
UI for Universal Windows Platform Forum
2 answers
65 views

Hi Progress,

I have a read-only RadMap (ie no selection changing by mouse/touch) where the selected shape is chosen following selection of an item in a ListView.  I have configured a MapShapeStyleSelector as per the instructions in [ShapeStyleSelector](https://docs.telerik.com/devtools/universal-windows-platform/controls/radmap/styling/shapestyling#shapestyleselector).

I originally coded the app using a main Page for the ListView and a separate Page for the map: when the user changed the selection in the Main Page and navigated back to the Page with the map, the newly selected shape was Styled according to the MapShapeLayer's ShapeStyleSelector.

I have since changed to use only one Page, and the ListView is now contained in a RadSideDrawer on the page.  The map correctly styles the shape when it is first chosen.  However, when the user opens the side-drawer and selects a different item, while the map still correctly updates ZoomLevel and Center to show the newly selected shape, it doesn't call SelectStyleCore in the MapShapeStyleSelector to style it.

How do I call a MapShapeLayer's SelectStyleCore when the user changes the selection in a ListView in the Page's side-drawer?

 

mc
Top achievements
Rank 1
 answered on 12 Aug 2019
3 answers
62 views

Hi, I have a RadMap with separate ShapeLayers for boundaries and roads.  I would like to toggle the display of the roads. How do I do this with UI for UWP?

I tried binding the Visibility of the MapShapeLayer to a VM property.  This seems to allow me to turn visibility 'on' (show the ShapeLayer), but not off again.  

I have found I **can** toggle the Visibility of the entire RadMap using binding.  Is the only way to have two maps (one with the boundaries ShapeLayer and one with both boundaries and roads) in order to toggle the display of a ShapeLayer?

Many thanks

 

mcalex

Yana
Telerik team
 answered on 05 Aug 2019
1 answer
45 views
Bing maps with UWP for win 10?
Pavel R. Pavlov
Telerik team
 answered on 07 Jun 2016
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
Iron
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?