Skip to content

Commit 1c4bc05

Browse files
committed
fixed IE11 address search issue
1 parent c052fc8 commit 1c4bc05

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

assets/javascripts/app.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,8 +631,9 @@ var App = (function ($, publ) {
631631
var address = $("button.btn-geocode").prev("input").val()
632632
$.getJSON("https://***REMOVED***/geocode/json/" + encodeURIComponent(address), function(data) {
633633
if (data.result.code >= 0 && data.result.coordinates) {
634+
var coords = [data.result.coordinates.x, data.result.coordinates.y];
634635
var geom = new ol.geom.Point(
635-
ol.proj.fromLonLat(Object.values(data.result.coordinates), 'EPSG:3857','EPSG:4326')
636+
ol.proj.fromLonLat(coords, 'EPSG:3857','EPSG:4326')
636637
)
637638
var features = vector.getSource().getFeatures();
638639
if (features.length > 0) {

0 commit comments

Comments
 (0)