fix creation of new geometries in editor
This commit is contained in:
parent
bf95b1c9cc
commit
3dc66dc9b8
1 changed files with 3 additions and 4 deletions
|
@ -236,12 +236,11 @@ editor = {
|
|||
editor.map.doubleClickZoom.disable();
|
||||
});
|
||||
editor.map.on('editable:vertex:drag', function (e) {
|
||||
e.vertex.setLatLng([(Math.round(e.latlng.lat*100)/100).toFixed(2),
|
||||
(Math.round(e.latlng.lng*100)/100).toFixed(2)]);
|
||||
e.vertex.setLatLng([Math.round(e.latlng.lat*100)/100, Math.round(e.latlng.lng*100)/100]);
|
||||
});
|
||||
editor.map.on('editable:drawing:click', function (e) {
|
||||
e.latlng.lat = (Math.round(e.latlng.lat*100)/100).toFixed(2);
|
||||
e.latlng.lng = (Math.round(e.latlng.lng*100)/100).toFixed(2);
|
||||
e.latlng.lat = Math.round(e.latlng.lat*100)/100;
|
||||
e.latlng.lng = Math.round(e.latlng.lng*100)/100;
|
||||
});
|
||||
editor.map.on('editable:vertex:ctrlclick editable:vertex:metakeyclick', function (e) {
|
||||
e.vertex.continue();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue