-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathREADME
80 lines (70 loc) · 2.08 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
jQuery plugin to work Google Maps Api v3
(moved from http://code.google.com/p/jgmap/)
This plugin allows you to show multiple markers on a map with custom icons and infowindows, optionally group them using https://github.com/simsalabim/gmaps.markermanager . Also you may specify target input to use for geocoding, correct its results dragging marker manually (or lock it), and track results. Originally forked from http://github.com/tristandunn/jquery-auto-geocoder. Functionality and conception were changed and extended.
![Sample](http://img121.imageshack.us/img121/6343/map1e.png)
@see sample in /sample dir.
Usage:
$("#search-map").Gmap({
show_points: {
lat: "lat",
lng: "lng",
infowindow: "infowindow",
marker: {
icon: "icon",
shadow: "shadow"
},
infowindow_options: {
disableAutoPan: true
},
autofit: true,
icon:{
src: "http://maps.google.com/mapfiles/ms/micons/purple.png",
shadow: "http://maps.google.com/mapfiles/ms/micons/pushpin_shadow.png"
},
group_markers: true,
markermanager_options:{
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
}
}
},
geocoder: {
clarification: "Петербург",
target: "search_id",
bounds: {sw: [37, 40], ne: [80, 140]},
country: "RU",
language: "ru",
success: {
zoom : 8
},
auto: "onkeyup",
delay: 3000,
icon: {
src: "http://maps.google.com/mapfiles/ms/micons/question.png",
shadow: "http://maps.google.com/mapfiles/ms/micons/question.shadow.png"
},
track_coordinates:{
lat: "lat",
lng: "lng",
accuracy: "accuracy",
infowindow: "Вроде бы это здесь...",
marker_options: {
draggable: true
}
}
},
initial:{
draggable: true,
zoom: 5,
center: [58, 35],
mapTypeControl : true,
scaleControl: true,
min_zoom: 20
}
});
Author: Alexander Kaupanin