Documentation

Center on geometry

Micello map can be cutomized to load or move to specific geometry using mapControl object. This example shows how to center the map at certain geometry. Use centerOnGeom function to center the map on specific geometry. here geometry object as function argument is necessary.

mapControl.centerOnGeom(mapDataObject.geomMap[3217201].g);

Now, this geometry can be on different level, above function will not change the level automatically. Use below code to find the level the geometry is on and to change the level.

mapDataObject.setLevel(mapDataObject.geomMap[3217201].pl);

Input different geometry ids in below example and hit "Center Map" button to see how it works.