A few feature questions

I am putting multiple questions in one here. Let me know if that is truly bad style and I can split it into several posts.

I want to change from xamarin forms maps to sfMaps, but there are a few things I need to clear up before taking the plunge on this rather map heavy app.

1) You can set a view radios for a may so implicitly define a zoom level or you can, for the layer, specifically set a zoom level. The first method, as well as pinch to zoom, can zoom smoothly while setting the zoomLevel explicitly is done with integers. Is there truly no way to set a specific zoom level with floats?

2) You can add and select markers, but there is no built in support for dragging a marker?

3) If I want to add multiple polygons to a map, the way is to create one shapeFileLayer _per_ polygon? If true, then I assume the proper solution is to have one shapeFileLayer with multiple sub layers with each sub layer containing one polygon? When I tried, that I could not make them show up however I tried to create them. Don't have sample code for now, but if you can just verify the proper procedure, I can experiment some more.

4) Is there any automatic performance tuning by ignoring polygons outside the view frustum, or should I keep on managing that myself by turning features on and off based on view boundaries?

Thanks in advance for any help you can provide in making me know if I can safely make the switch.

1 Reply

RS Ramya Soundar Rajan Syncfusion Team January 18, 2021 02:25 PM UTC

Hi Thomas, 
 
Query 1: You can set a view radios for a may so implicitly define a zoom level or you can, for the layer, specifically set a zoom level. The first method, as well as pinch to zoom, can zoom smoothly while setting the zoomLevel explicitly is done with integers. Is there truly no way to set a specific zoom level with floats? 
 
We would like to inform that you can update the ZoomLevel property of the SfMaps can be defined only by integer value inorder to get new zoom level with new set of tile images. You can calculate the zoom level based on the geo bounds or radius. Please refer the below help document link. 
 
  
Query 2: You can add and select markers, but there is no built in support for dragging a marker? 
 
Currently, we don’t have inbuilt support for marker dragging. We have already considered the feature request.  
 
 
Please cast your vote to make it count. We will prioritize the features every release based on the demands and we do not have immediate plan to implement this feature since we committed with already planned work. So, this feature will be available any of our upcoming release. 
  
If you have any more specification/suggestions to the feature request, you can add it as a comment in the portal. 
 
However, you can drag the marker using Map's panning event support in the sample level. Please refer the help document link below. 
 
 
We have provided Panning and Tapping event support. Through this event, you can achieve by adding the marker in a tapped position and drag a marker.  
 
 
Please refer the below KB for more details.  
 
 
Query 3: If I want to add multiple polygons to a map, the way is to create one shapeFileLayer _per_ polygon? If true, then I assume the proper solution is to have one shapeFileLayer with multiple sub layers with each sub layer containing one polygon? 
 
We would like to inform you that to add polygons in maps then you need to create separate sub layer for each polygon shapes. Please refer the below help document link for more information. 
 
 
Query 4: Is there any automatic performance tuning by ignoring polygons outside the view frustum, or should I keep on managing that myself by turning features on and off based on view boundaries? 
 
Current we don’t have virtualization support for rendering the polygon to ignore the outside view polygon points. You can update the polygon points based on boundaries. 
 
Regards, 
Ramya S 


Loader.
Up arrow icon