Component JNC.Views.Map

Configure the map

Example of how embedding the generic map into web page. The dimension of map is 320x568 pixel (IPhone 5 size)





The code


var webapi = new JNC.Views.Map({
    tagId: '.test_map_div',
    center: [  12.0, 46.0 ],
    navKey: '***'
});


// You can disable the control by options or with explicit function.

// example disable ZoomControl
webapi.showZoomControl(false);

// example disable DistanceControl
webapi.showDistanceControl(false);