Set North

The default orientation of a Micello map is the same as maps that are displayed at that community or venue.

If instead the map needs to be displayed with North to the top, use the following two lines of code to reorient the map. Labels will reorient automatically.

mapView = mapControl.getMapView(); // get the mapView object
mapView.setTopNorth(true); // pass true to setTopNorth()

The whole initialization function should look like this:

micello.maps.init (apikey, mapInit);
function  mapInit() {
    var mapControl =  new micello.maps.MapControl('mapElement');
    var mapDataObject = mapControl.getMapData();
    var mapView = mapControl.getMapView();

Toggle the example below to see the difference.