Combine ImageryLayer and ShapeFileLayer?

Is it possible to combine the ImageryLayer with the ShapeFileLayer? I would like to be able to superimpose shape layer on top of OSM map for example.

Also when I use the ShapeFileLayer, can I change the map projection? In the examples, the projection seems to be Equirectangular, but it looks distorted. I'm more used to Mercator projection.

3 Replies

SG Sri Gayathri Gopalakrishnan Syncfusion Team November 14, 2016 01:22 PM UTC

Hi Erik, 

Query 1: "can I change the map projection" 

Yes. We can change the map projection using the property called LayoutType. If the LayoutType is Tile then it will render the maps in Mercator projection and LayoutType is Default then it will render in Equirectangular projection. We suggest you to use below code to acheive your requirement. 

<syncfusion:SfMap> 
  <syncfusion:SfMap.Layers> 
     <syncfusion:ShapeFileLayer LayoutType ="Tile" Uri="Namespace.world.shp"/> 
  </syncfusion:SfMap.Layers> 
</syncfusion:SfMap> 

Query 2 : "combine the ImageryLayer with the ShapeFileLayer" 

We have created a separate incident for further follow up's about “Combine ImageryLayer with ShapeFileLayer” under your Direct-trac login account. 

https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents   

Regards, 
Sri Gayathri. 



UN Unknown Syncfusion Team November 15, 2016 07:09 AM UTC

OK thank you! Maybe you guys can update the API Reference for LayoutType property? At the moment there is no description for this property.


MV Mohana V Syncfusion Team November 16, 2016 12:49 PM UTC

Hi Erik,

We will add LayoutType property and description in API reference for wpf Maps.This will be included in our Essential studio volume 1 2017 release which is expected to be released on first week of February, 2017.

Regards,
Mohana V

Loader.
Up arrow icon