removed copy paste check

This commit is contained in:
Sitt Min Oo 2019-02-14 19:47:25 +01:00
parent ec91384e9a
commit e27d3977dd

View file

@ -52,16 +52,7 @@
let callback = function OSMCallBack(location, data){ let callback = function OSMCallBack(location, data){
var lat, lon; var lat, lon;
if (data.features.length < 1) { if (data.features.length >= 1 ) {
lat = 51.0538286;
lon = 3.7250121;
var className = 'is-invisible';
var el = document.getElementById('map-error');
if (el.classList)
el.classList.remove(className);
else
el.className = el.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' ');
} else {
var place = data.features[0].properties; var place = data.features[0].properties;
lat = data.features[0].geometry.coordinates[1]; lat = data.features[0].geometry.coordinates[1];
lon = data.features[0].geometry.coordinates[0]; lon = data.features[0].geometry.coordinates[0];