maplace.js icon indicating copy to clipboard operation
maplace.js copied to clipboard

Mixing polygons and single markers on same map

Open MuTLY opened this issue 10 years ago • 1 comments

Is this possible? I tried to use the AddLocations() method before Load() and it is adding up to the polygon.

var poly = [{ ... }]; var data = [{ lat: 45.9, lon: 10.9, title: 'Single marker', html: 'Single marker', zoom: 6, icon: 'http://commercealouergrenoble.com/images/Map-Marker-Marker-Outside-Azure-icon.png' }];

var ullist = new Maplace({ map_div: '#gmap', locations: poly, controls_cssclass: 'custom-css', type: 'polygon', draggable: false, map_options: { set_center: [45.9, 10.9], zoom: 8 }, view_all: true, generate_controls: false });

ullist.AddLocations(data); ullist.Load();

image: http://cl.ly/image/3R1I2S3f1Z33

MuTLY avatar Apr 01 '14 19:04 MuTLY

anyone can give this solution ?

rizkyikhsan avatar Apr 08 '15 06:04 rizkyikhsan