mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-19 11:16:32 +00:00
map fix
This commit is contained in:
parent
a3ec5846df
commit
d2eb1ed9a5
@ -26,15 +26,17 @@
|
|||||||
" <script>\n" \
|
" <script>\n" \
|
||||||
" function initMap() {\n" \
|
" function initMap() {\n" \
|
||||||
" var map = new google.maps.Map(document.getElementById('map'), {\n" \
|
" var map = new google.maps.Map(document.getElementById('map'), {\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" \
|
||||||
|
" delete location._l;\n" \
|
||||||
" return new google.maps.Marker({\n" \
|
" return new google.maps.Marker({\n" \
|
||||||
" position: location,\n" \
|
" position: location,\n" \
|
||||||
" label: location._l\n" \
|
" label: lbl\n" \
|
||||||
" });\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 = ["
|
||||||
|
Loading…
Reference in New Issue
Block a user