mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 12:33:44 +02:00
map fix
This commit is contained in:
parent
d2eb1ed9a5
commit
f4a83e516c
1 changed files with 5 additions and 4 deletions
|
@ -29,23 +29,24 @@
|
||||||
" center: {lat: 0, lng: 0},\n" \
|
" center: {lat: 0, lng: 0},\n" \
|
||||||
" zoom: 3\n" \
|
" zoom: 3\n" \
|
||||||
" });\n" \
|
" });\n" \
|
||||||
" var markers = locations.map(function(location,i) {\n" \
|
" /*var markers =*/ locations.map(function(location,i) {\n" \
|
||||||
" var lbl = location._l||\"\";\n" \
|
" var lbl = location._l||\"\";\n" \
|
||||||
" delete location._l;\n" \
|
" delete location._l;\n" \
|
||||||
" return new google.maps.Marker({\n" \
|
" return new google.maps.Marker({\n" \
|
||||||
" position: location,\n" \
|
" position: location,\n" \
|
||||||
|
" map: map,\n" \
|
||||||
" label: lbl\n" \
|
" label: lbl\n" \
|
||||||
" });\n" \
|
" });\n" \
|
||||||
" });\n" \
|
" });\n" \
|
||||||
" var markerCluster = new MarkerClusterer(map,markers,{imagePath: 'https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m'});\n" \
|
" //var markerCluster = new MarkerClusterer(map,markers,{imagePath: 'https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m'});\n" \
|
||||||
" }\n" \
|
" }\n" \
|
||||||
" var locations = ["
|
" var locations = ["
|
||||||
|
|
||||||
#define ZT_GEOIP_HTML_TAIL \
|
#define ZT_GEOIP_HTML_TAIL \
|
||||||
"];\n" \
|
"];\n" \
|
||||||
" </script>\n" \
|
" </script>\n" \
|
||||||
" <script src=\"https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/markerclusterer.js\">\n" \
|
" <!-- <script src=\"https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/markerclusterer.js\">\n" \
|
||||||
" </script>\n" \
|
" </script> -->\n" \
|
||||||
" <script async defer\n" \
|
" <script async defer\n" \
|
||||||
" src=\"https://maps.googleapis.com/maps/api/js?key=%s&callback=initMap\">\n" \
|
" src=\"https://maps.googleapis.com/maps/api/js?key=%s&callback=initMap\">\n" \
|
||||||
" </script>\n" \
|
" </script>\n" \
|
||||||
|
|
Loading…
Add table
Reference in a new issue