[英]How to modify markers using javascript in gmap3?
我还没有使用过gmap3,但我认为类似的方法会起作用。 检查这个出去非gmap3解决方案。
var locations = [
[47.003088, -96.929448],
[46.817268, -96.810024],
[46.842064, -96.796163]
];
$("#test").gmap3({
map:{
options:{
center:[46.842064, -96.796163],
zoom: 5
}
}
for (var i = 0; i < locations.length; i++) {
$("#test").gmap3({
marker:{
latLng: locations[i]
}
});
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.