This example is almost identical to the 'Getting Started' example above, except that it passes two additional arguments into the method loadCommunity(). The first argument is still community ID, followed by drawing ID and level ID. This allows the developer to load the map to a specific part of a map.


The loadCommunity() method in context:

micello.maps.init (apikey, mapInit);
function  mapInit() {
    var mapControl =  new micello.maps.MapControl('mapElement');
    var mapDataObject = mapControl.getMapData();
    mapDataObject.loadCommunity(144,7247, 8152); // cid, did, lid

Try entering new values for drawing ID and level ID, then click 'Reload' below.

Hint: Combos that work with this map:

Drawing: 144 - Levels: 8151

Drawing: 7247 - Levels: 8152, 8153

Drawing: 21235 - Levels: 31218, 31209

Ground level ids are not shown because they load by default when no level id argument is present:

loadCommunity(cid, did);

Click on reload button in below example to see map loading at defined drawing and level.