Changeset 364 for binary-improvements/webserver
- Timestamp:
- Jun 9, 2021, 10:28:51 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/webserver/js/leaflet.control.coordinates.js
r361 r364 8 8 container = L.DomUtil.create('div', name + ' webmap-control'); 9 9 10 container.innerHTML = "Mouse pos: - E / - N<br/>Last click: -E / - N"10 container.innerHTML = "Mouse pos: - E / - N<br/>Last click: - E / - N" 11 11 L.DomEvent.on (container, 'mousemove', L.DomEvent.stopPropagation); 12 12 … … 46 46 _formatCoord: function(latlng) { 47 47 if (latlng == false) 48 return "- E / - N";48 return "- E / - N"; 49 49 else 50 50 return "" + 51 Math.abs(latlng.l ng).toFixed(0) + (latlng.lng>=0 ? " E" : " W") + " / " +52 Math.abs(latlng.l at).toFixed(0) + (latlng.lat>=0 ? " N" : " S");51 Math.abs(latlng.lat).toFixed(0) + (latlng.lat>=0 ? " E" : " W") + " / " + 52 Math.abs(latlng.lng).toFixed(0) + (latlng.lng>=0 ? " N" : " S"); 53 53 }, 54 54
Note:
See TracChangeset
for help on using the changeset viewer.