ThinkGeo.com    |     Documentation    |     Premium Support

Gotchas

In working with both the 2.x and 3.x versions a couple things weren't emphasized enough.


1. The need to use indexes greatly increases the speed at which the map is drawn and there is very little reference to it in the documentation and probably should be mentioned in the "Getting Started Guide" and/or the sample code.


2. If you use the new Map Suite Explorer (the one provided with 3.x) to index your .shp files they will no longer work with 2.x applications. Of course that means you cannot have a common data source for both 2.x and 3.x applications.


3. Not only are the Zoomlevels expanded in the 3.x version but also (and this cost me an entire day of work before figuring it out) is that they are reversed, In 2.x ZoomLevel01 was maximum zoom and 3.x it is ZoomLevel20.


  



Alan,


1. We use indexes within ShapeFileFeatureLayer by default; it will throw an exception if there is no indexes file unless the RequireIndex property is set to false.




worldLayer.RequireIndex = false;


2. In V2.0 the Feature ID is integer, but in V3.0 as we support different data sources like SQL, Oracle and many other sources, we use string as the Feature ID, also for the shape file. That’s why we can not share the indexes between 2.0 and 3.0.


3. We change the ZoomLevel to make it compatible with GoogleMap and VirtualEarth. I think you will like it as you can switch your background to GoogleMap or VirtualEarth easily.


Thanks,

ThinkGeo Support.