I'm trying to display the usa_st shape file in your example, I can display this map in v2010.1 so I'm sure the shape file is good. The usa_st shp and dbf files are in a folder ShapeFiles. I have tried all paths, foward slash, back slash, no begining slash. Please help....Thank you
<Window x:Class="MapTest.MainWindow"
<!--<igMap:ShapeFileReader Uri="/ShapeFiles/usa_st" DataMapping="caption=STATE_ABBR"/>-->
</igMap:MapLayer>
</igMap:XamMap>
</Grid>
</
Window>
In WPF Map v10.2 when ShapeFileReader.Uri starts with “/” the control is not looking for project resources like before. Now it is looking for files, relative to the executable file.
If your shape files are in /project/ShapeFiles/usa_st, and your executable is in /project/bin/debug/
You need to set this path:
<igMap:ShapeFileReader Uri="/../../ShapeFiles/usa_st" />
Thank you.....that did it
Hello!
You can also open a shape file from anywhere on your computer using an absolute path:
<igMap:ShapeFileReader Uri="C:\Users\SomeUser\Desktop\usa_st" />
In this case the shape file doesn't need to be a part of the project.