mirror of
https://github.com/crawlerop/lpads
synced 2026-08-14 06:22:32 +07:00
Edit button
This commit is contained in:
parent
ff1b16a37b
commit
4a5cabdd77
1 changed files with 8 additions and 8 deletions
|
|
@ -238,14 +238,6 @@
|
|||
layers: [normal]
|
||||
})
|
||||
|
||||
L.easyButton('fa-search', function(){
|
||||
document.location = "search.html"
|
||||
}).addTo(mymap)
|
||||
|
||||
L.easyButton('fa-pencil', function(){
|
||||
document.location = "editor.html?lat="+start[0]+"&lng="+start[1]
|
||||
})
|
||||
|
||||
if (addLayer == true) {
|
||||
mymap.addLayer(data)
|
||||
}
|
||||
|
|
@ -489,6 +481,14 @@
|
|||
|
||||
L.easyButton('fa-map-marker', dosearch).addTo(mymap)
|
||||
|
||||
L.easyButton('fa-search', function(){
|
||||
document.location = "search.html"
|
||||
}).addTo(mymap)
|
||||
|
||||
L.easyButton('fa-pencil', function(){
|
||||
document.location = "editor.html?lat="+start[0]+"&lng="+start[1]
|
||||
}).addTo(mymap)
|
||||
|
||||
//console.log(addLayer)
|
||||
</script>
|
||||
</body>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue