I created an ASP.Net project with jQuery and was able to render igMap with shapefiles - .shp, .dbf
However, the map image is very small. I want to render it zoom.
How can I auto-zoom the map image?
Any help is very much appreciated.
Thank you so much! I will have a look. In our company, we have used the Infragistics Map control for Silverlight before and now, we will be using Infragistics Map control for jQuery. Thank you very much for your continued support!
Hi, trifee
You can find attached an HTML sample which implements auto-zoom in the case of geographic shape series. It contains a separate JS file with a helper class which contains a variety of helper functions that do the trick. When the chart is rendered initially the helper enumerates all shapes and calculates the proper window rectangle so that all shapes are visible. The sample also implements zooming on a shape when that shape is clicked with the mouse (or tapped on a touch screen).
Please, note that the sample must be hosted on a web server in order to work. Review and post here if you need some information.
Cheers, Lazar
Thank you so much!
trifee
I’ll provide you with a working sample that auto zooms the data displayed on the map in case of geographic symbol series and in the case of geographic shape series. Just need a couple of days test it since it is a bit complicated.
There is no auto-zoom functionality in the control yet but you can set an initial zoom and position using the windowRect option. This option accepts an object with left, top, width and height in relative units (from 0 to 1). You can see an example how it is used in the Geographic Symbol Series sample in the online samples browser.
I suggest that you set a fixed size for the map control or leave the default width and height of 500px rather than using dynamic width and height, like 80% or something like this.
I think it would be useful to have automatic zoom in the control and it would be helpful if you log a feature request so that we increase priority.