- $.cookie("_osm_location", cookieContent(map), { expires: expiry, path: "/" });
+ $.cookie("_osm_location", OSM.locationCookie(map), { expires: expiry, path: "/" });
OSM.router.route("/search?query=" + encodeURIComponent(
map.getCenter().lat.toFixed(precision) + "," +
map.getCenter().lng.toFixed(precision)));
OSM.router.route("/search?query=" + encodeURIComponent(
map.getCenter().lat.toFixed(precision) + "," +
map.getCenter().lng.toFixed(precision)));
$("#map").on('dragend dragover',function(e) { e.preventDefault(); });
$("#map").on('drop',function(e) { OSM.routing.handleDrop(e); e.preventDefault(); });
$(".routing_marker").on('dragstart',function(e) {
$("#map").on('dragend dragover',function(e) { e.preventDefault(); });
$("#map").on('drop',function(e) { OSM.routing.handleDrop(e); e.preventDefault(); });
$(".routing_marker").on('dragstart',function(e) {