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.


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.


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