We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c052fc8 commit 1c4bc05Copy full SHA for 1c4bc05
assets/javascripts/app.js
@@ -631,8 +631,9 @@ var App = (function ($, publ) {
631
var address = $("button.btn-geocode").prev("input").val()
632
$.getJSON("https://***REMOVED***/geocode/json/" + encodeURIComponent(address), function(data) {
633
if (data.result.code >= 0 && data.result.coordinates) {
634
+ var coords = [data.result.coordinates.x, data.result.coordinates.y];
635
var geom = new ol.geom.Point(
- ol.proj.fromLonLat(Object.values(data.result.coordinates), 'EPSG:3857','EPSG:4326')
636
+ ol.proj.fromLonLat(coords, 'EPSG:3857','EPSG:4326')
637
)
638
var features = vector.getSource().getFeatures();
639
if (features.length > 0) {
0 commit comments