Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mixing polygons and single markers on same map #43

Open
MuTLY opened this issue Apr 1, 2014 · 1 comment
Open

Mixing polygons and single markers on same map #43

MuTLY opened this issue Apr 1, 2014 · 1 comment

Comments

@MuTLY
Copy link

MuTLY commented Apr 1, 2014

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

@rizkyikhsan
Copy link

anyone can give this solution ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants