Hi All,
Can you provide us information whether we can use the same map control on iphone,ipad,Android mobiles or do we have a seperate control with similiar functionalities which works for all type of mobiles.
We are eagerly waiting for your reply to start our evaluation on those controls for building mobile application using map control similiart to infragistics xammap control for silverlight.
Thanks in Advance,
Pavan
Here's an example of binding to a collection rather than a shapefile:
var data = [{ points: [[{ x: 0, y: 0 }, { x: 30, y: 0 }, { x: 30, y: 30 }, { x: 0, y: 30 }, { x: 0, y: 0 }]] }, { points: [[{ x: 40, y: 0 }, { x: 70, y: 0 }, { x: 70, y: 30 }, { x: 40, y: 30 }, { x: 40, y: 0 }]] }]; $("#map").igMap({ width: "700px", height: "500px", series: [{ name: "series1", type: "geographicShape", markerType: "none", dataSource: data, shapeMemberPath: "points", shapeStyle: { fill: "red", stroke: "black", thickness: 8.0 } }], overviewPlusDetailPaneVisibility: "visible", horizontalZoomable: true, verticalZoomable: true, windowResponse: "immediate" });
If you could emit JSON similar to the object graph above you could bind it to the map in this manner.Hope this helps!-Graham
Hi Graham,
Can you post the sample where in the shape series can be binded to array of array of points?
Can we bind the data with geometric type retrieved from sql server to the igMap (if the data is fetched from the sql database through WCF service)? If so how?
- Pavan
Pavan,
In the CTP, clicking on shapefile shapes and getting an event is not supported, but should be supported in the next version. If you turn on markers for the shapes, you can get an event from clicking on the shape makers.
There is a sample for the xamGeographicMap for silverlight on doing drilldown. Due to API similarity the code would likely look quite similar for doing drilldown on igMap.
The igMap doesn't currently support parsing WKT. Only shapefiles. But you can just bind the shape series against an array of arrays of points. So if you were to have any code that parses the WKT from sql server you could get that to render in the map pretty handily.
I'd recommend making a feature request for us supporting WKT in the igMap, and perhaps we can get that in there in an upcoming release.
-Graham
Hi, Pavan
The igMap control is based heavily on design and algorithms used in the xamMap control and you can expect to find most of the features available in our data visualization product for Silverlight. As of today I cannot state with absolute certainty what and when will be available as we are early in the planning phase for the next release.
Specifically to your questions: I guess drill down feature is something that it is likely to be implemented and available. (As a temporary solution in the CTP version you can use the seriesMouseLeftButtonUp and seriesMouseLeftButtonDown events to get the item on the map which was clicked and alter the view on the map.)
Getting spatial data from SQL server is interesting feature but it is application specific and is hard to implement and design properly in a generic solution like our controls. So probably the best course of action for you is to have a web/WCF service or controller logic which takes care of getting data from a database and making it available to the control.
For the time being you can investigate the API of the igMap at http://help.infragistics.com/jQuery/2012.1/ui.igMap and the Map samples at http://samples.infragistics.com/jquery/map.
Cheers, Lazar
PS: I can get to you later when more details are available.
Hi Lazar,
Very happy to hear that from you. I need few more clarifications.
1. Is Drill Down to lowerlevel like in XamMap available?
2. Is reading spatial data from SQL server available?
Any code samples to start up with are available for download. If so can you give the link to download them.