maplace.js
maplace.js copied to clipboard
Mixing polygons and single markers on same map
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
anyone can give this solution ?