$.cookie("_osm_location", OSM.locationCookie(map), { expires: expiry, path: "/" });
});
- if ($.cookie('_osm_donate2015') === 'hide') {
- $('#donate').hide();
- }
-
- $('#donate .close').on('click', function() {
- $('#donate').hide();
- $.cookie("_osm_donate2015", 'hide', { expires: expiry });
- });
-
if ($.cookie('_osm_welcome') === 'hide') {
$('.welcome').hide();
}
map.setView([params.lat, params.lon], params.zoom);
}
- var marker = L.marker([0, 0], {icon: OSM.getUserIcon()});
-
if (params.marker) {
- marker.setLatLng([params.mlat, params.mlon]).addTo(map);
+ L.marker([params.mlat, params.mlon]).addTo(map);
}
$("#homeanchor").on("click", function(e) {
center = L.latLng(data.lat, data.lon);
map.setView(center, data.zoom);
- marker.setLatLng(center).addTo(map);
+ L.marker(center, {icon: OSM.getUserIcon()}).addTo(map);
});
function remoteEditHandler(bbox, object) {