Map Control not rendering

Hi
I am trying to get a map control to render just the world1.shp file.
I have added world1.shp & world1.dbf to assets and added this to the mainpage xaml
<syncfusion:SfMap>
            <syncfusion:SfMap.Layers>
                <syncfusion:ShapeFileLayer   Uri="MapTest2.world1.shp">
                </syncfusion:ShapeFileLayer>
            </syncfusion:SfMap.Layers>
        </syncfusion:SfMap>
The code runs without error, but I just get a blank screen. I have looked at the map examples, but as I am not experienced in c# (I use VB.net) I cannot figure out what to do.
Can you please advise?
Also, I saw in an older thread that you were planning to add offline support for OSM - has this been implemented yet? I can get an OSM world map to render simply by adding the lines as you describe in Map providers. Offline is essential for me as I want to layer KLM files over the map to chart marine data, but offline.
Regards,
J.

3 Replies

SG Sri Gayathri Gopalakrishnan Syncfusion Team March 19, 2018 08:37 AM UTC

Hi Jon, 
 
Query1: Map Control not rendering 
 
We have analyzed your query and we suspect that, the problem occurred due to shapes file build action not set as “Embedded Resource”.  We have prepared simple map sample by sitting shapes file’s build action as Embedded Resource. Please download our sample from the below link, 
 
 
 
 
Screenshot
 
 
 
Query2: Offline support for OSM 
 
As per our current implementation we don’t have OSM Offline support. Since we are working on other higher priority items on our to-do list that we have to complete first. As this implementation would greatly depend on the factors such as product design, code compatibility and complexity, we will implement this feature in any of our upcoming releases. We will inform you once this feature is implemented.  
Regards, 
Sri Gayathri. G 



JE Jon Ellis March 19, 2018 02:05 PM UTC

That was exactly the issue! thankyou for the prompt response.


SG Sri Gayathri Gopalakrishnan Syncfusion Team March 20, 2018 04:01 AM UTC

Hi Jon, 
Thanks for your response, we are glad that the issue has been resolved and please get back to us if you need any other assistance. 
Regards, 
Sri Gayathri. G 
  


Loader.
Up arrow icon