Difference between revisions of "Widget:GTform"
m |
m |
||
Line 110: | Line 110: | ||
ntx.style.display = "none"; | ntx.style.display = "none"; | ||
ntxa.style.display = "inline"; | ntxa.style.display = "inline"; | ||
+ | map.setOptions({ | ||
+ | center: ntxg, | ||
+ | zoom:14 | ||
+ | }); | ||
if (ntn.style.display=="none") { | if (ntn.style.display=="none") { | ||
ntn.style.display="inline"; | ntn.style.display="inline"; | ||
Line 121: | Line 125: | ||
function showPosition(position) { | function showPosition(position) { | ||
− | ntx.value = position.coords.latitude + ', ' + | + | ntx.value = position.coords.latitude + ', ' + position.coords.longitude; |
− | position.coords.longitude; | + | ntxg = new google.maps.LatLng(position.coords.latitude, position.coords.longitude); |
} | } | ||
</script> | </script> |