Finally fixed the problem. It was the label all this time. removed this 2 lines in the eqibla.js file and everything is working fine.
remove these two lines.
Code:
//if (!hideInfo && this.getMapType() != 'e' && place.address != '' && this.map.getSize().height > 340)
//this.map.openInfoWindowHtml(this.home, '<h4>Address:</h4><p>'+ place.address+ '</p>');
Code:
// show address on map
Qibla.showAddressOnMap = function(response, hideInfo) {
if (!response || response.Status.code != 200) {
if (!this.map.isLoaded())
this.map.setCenter(this.home, 1*this.mapZoom);
else
alert('Adres niet gevonden');
}
else {
var place = response.Placemark[0];
this.home = new GLatLng(place.Point.coordinates[1], place.Point.coordinates[0]);
var zoom = 4+ parseInt(1.5* place.AddressDetails.Accuracy);
zoom = Math.min(zoom, this.map.getCurrentMapType().getMaximumResolution());
this.map.setCenter(this.home, zoom);
this.redraw();
//if (!hideInfo && this.getMapType() != 'e' && place.address != '' && this.map.getSize().height > 340)
//this.map.openInfoWindowHtml(this.home, '<h4>Address:</h4><p>'+ place.address+ '</p>');
}
}
Bookmarks