Update buiilding locate URL
This commit is contained in:
parent
148187d17e
commit
88e054ff55
@ -28,7 +28,7 @@ class ColouringMap extends Component {
|
|||||||
var lat = e.latlng.lat
|
var lat = e.latlng.lat
|
||||||
var lng = e.latlng.lng
|
var lng = e.latlng.lng
|
||||||
fetch(
|
fetch(
|
||||||
'/buildings.json?lat='+lat+'&lng='+lng
|
'/buildings/locate?lat='+lat+'&lng='+lng
|
||||||
).then(
|
).then(
|
||||||
(res) => res.json()
|
(res) => res.json()
|
||||||
).then(function(data){
|
).then(function(data){
|
||||||
|
Loading…
Reference in New Issue
Block a user