Hi There
1. With InformationLayer Map Shape, MapPolyLine i was able to set zoom range value and style dynamically, like code below, looking for equivalent code for PolyLineData.
This works;
Code below doesn't work;
2. I have some 3K PolylineData framework elements which I'm creating dynamically live above , adding each of them to VirtualizationLayer in loop.This is quick but the because of 3K pPolylineData the Zoom and Panning performance is degraded.Kindly suggest the right approach.
Thanks in Anticipation
Thanks in Anticipation
1. With InformationLayer Map Shape, MapPolyLine i was able to set zoom range value and style dynamically, like code below, looking for equivalent code for PolyLineData.
This works;
MapPolyline polylinedata =
new
MapPolyline()
polylinedata.SetValue(MapLayer.ZoomRangeProperty,
new
ZoomRange(2, 9));
polylinedata.SetValue(MapLayer.BaseZoomLevelProperty, 5);
polylinedata.SetValue(MapLayer.MaxScaleProperty, 5);
polyline.Style =
this
.Resources[
"selectedPolyLineStyle"
]
as
Style;
Code below doesn't work;
PolylineData polylinedata =
new
PolylineData();
polylinedata.SetValue(MapLayer.ZoomRangeProperty,
new
ZoomRange(2, 9));
polylinedata.SetValue(MapLayer.BaseZoomLevelProperty, 5);
polylinedata.SetValue(MapLayer.MaxScaleProperty, 5);
polyline.Style =
this
.Resources[
"selectedPolyLineStyle"
]
as
Style;
2. I have some 3K PolylineData framework elements which I'm creating dynamically live above , adding each of them to VirtualizationLayer in loop.This is quick but the because of 3K pPolylineData the Zoom and Panning performance is degraded.Kindly suggest the right approach.
Thanks in Anticipation
Thanks in Anticipation