Hi Team,
we are using infragistics controls in our ASP.NET project. I forgot that license key. Once got then i will update same in our future conversation.
I come to question directly. We are migrating ASP.NET to ASP.NET MVC.
I am using IGNITE controls like chart,grid in our new ASP.NET MVC 4 project.
I have a requirement like to display only US country map(includes other states such as alaska,hawaii, puertorico) in the screen.
In our existing ASP.NET project, we are using .shp and .dbf files in order to display USA maps.
My question is how to use USA .shp and .dbf files using IGNITE MAP controls.
I tried .shp and .dbf files but not working in igmap based on the example in this below link
http://www.igniteui.com/map/geo-shapes-series
I need output as like as attached image.
Please give me an idea and how to do it.
If you have any coding sample please share
Thanks in advance.
Regards,
Ashok
Hello,Thank you for contacting Infragistics Developer Support!Could you please provide an isolated sample of your ASP project where you are initializing the map with required files for the map. Thank you in advance I will be awaiting for your feedback.
Hi,
Please tweak the sample posted in infragistics site (link given below - which currently displays world map) to display US map alone along with Alaska, Puerto Rico and Hawai.
https://www.igniteui.com/map/geo-shapes-series
https://www.igniteui.com/map/json-binding
Our requirement is to display US map alone and show all US states including Alaska, Puerto Rico and Hawai, States should be colored and should be clickable. We should be able to display text when hover on state.
Thanks
Hello,Thank you for your patience!
To display a certain country as you want you need to have .shp and .dbf files for the specified country. However you probably have noticed when you referenced those files in igMap, all other contries and continents a stil being shown. To disable them you can set plotBackGroundArea to the color you want.
@(Html.Infragistics() .Map() .ID("map") .PlotAreaBackground("#c4e4ee") .Series(series => { series.GeographicShape("USA") .ShapeDataSource(Url.Content("~/Content/Shapes/USA.shp")) .DatabaseSource(Url.Content("~/Content/Shapes/USA.dbf")) .Brush("white") .Outline("blue") .MarkerOutline("blue"); }) .WindowRect(0, 0.22, 0.321, 0.23) .DataBind() .Render() )
Please review the attached sample. You may notice that Puertu Rico is missing the reason for that is because it is not included in the shape files.If you need any further assistance please let me know.
Hello,
I am still following this. Have you been review the solution?If you have any concerns or questions, please feel free to contact me, I will be glad to help you.Thank you for choosing Infragistics components!
Thanks for your response.
I have downloaded your file and tested and got an output. Please see screen shot 1.
But i need output like in the screen shot 2.
Can i get USA shape files along with puerto rico from you like in the screen shot 2. This is our requirement actually.
Please help on this.