|
|
|
|
|
Inserting layers of objects

You can put on many dynamic layers of your objects on the map. Objects placed one the layer are the instances of class EMAPI.Object derived class.

Create a new layer using EMAPI.VectorLayer.

var map = new EMAPI.Map('mapa1','userId');

var layer = new EMAPI.VectorLayer('warstwa 1'); //create new layer 'layer'
        
map.addLayer(layer); //adding layer 'layer' to the map

For each layer it's possible to add objects: