MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / geolocation.js

File geolocation.js

common/src/web/html5/geolocation.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1function success(position) {
2 var message = document.getElementById("status");
3 message.innerHTML ="<img src='http://maps.google.com/maps/api/staticmap?center=" + position.coords.latitude + "," + position.coords.longitude + "&size=300x200&maptype=roadmap&zoom=12&&markers=size:mid|color:red|" + position.coords.latitude + "," + position.coords.longitude + "&sensor=false' />";
4 message.innerHTML += "<p>Longitude: " + position.coords.longitude + "</p>";

Callers

nothing calls this directly

Calls 1

errorFunction · 0.85

Tested by

no test coverage detected