HanG321 Blog

add objects to map

To add an image or other object to the map, insert something like the following code into startUp.js, just before ‘drawPage();’ – located around line 60:

var canvas = myKaMap.createDrawingCanvas( 500 ); //zindex=500
var img = document.createElement( 'img' );
img.src = 'images/kamap.gif';
myKaMap.addObjectGeo( canvas, lon, lat, img )

 


Exit mobile version