$('kronolithEventMapLink').show();
} else if (Kronolith.conf.maps.driver) {
$('kronolithEventMapLink').hide();
+ this.removeMapMarker();
}
return;
}
}
},
+ /**
+ * Remove the event marker from the map. Called after clearing the location
+ * field.
+ */
+ removeMapMarker: function()
+ {
+ if (this.mapMarker) {
+ this.map.removeMarker(this.mapMarker);
+ $('kronolithEventLocationLon').value = null;
+ $('kronolithEventLocationLat').value = null;
+ }
+ },
+
ensureMap: function()
{
if (!this.mapInitialized) {