-
Notifications
You must be signed in to change notification settings - Fork 3
/
README
32 lines (21 loc) · 1.02 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
This is just a Google Maps Api v3 interface to add-remove and group markers on a map.
(moved from http://code.google.com/p/gmapsmarkermanager)
You may initialize marker manager with following params: group marker icon properties (src, shadow), cell width and height - grouping grid dimentions, threshold - zoom level applies stop grouping markers, sanity - square of a map where user movements do not call grid redraw. All params are optional.
Usage:
var markerManagerOptions = {
icon: {
src: "http://maps.google.com/mapfiles/ms/micons/partly_cloudy.png",
shadow: "http://maps.google.com/mapfiles/ms/micons/partly_cloudy.shadow.png"
},
cell: {
width: 48,
height: 96
},
threshold: 12,
sanity: 1.5
};
var markerManager = new GmapsMarkerManager(map, markerManagerOptions);
var marker = new google.maps.Marker({position: new google.maps.LatLng(-25.363882, 131.044922)}));
markerManager.addMarker(marker);
markerManager.removeMarkerByNumber(0);
Author: Alexander Kaupanin