+//= require querystring
+
$(document).ready(function () {
+ var querystring = require("querystring-component");
var id = $("#id-embed");
if (id.data("key")) {
- var hashParams = OSM.params(location.hash.substring(1)),
- mapParams = OSM.mapParams(),
- params = {};
+ var hashParams = OSM.params(location.hash.substring(1));
+ var mapParams = OSM.mapParams();
+ var params = {};
if (mapParams.object) {
params.id = mapParams.object.type[0] + mapParams.object.id;
if (hashParams.background) params.background = hashParams.background;
if (hashParams.comment) params.comment = hashParams.comment;
+ if (hashParams.disable_features) params.disable_features = hashParams.disable_features;
if (hashParams.hashtags) params.hashtags = hashParams.hashtags;
+ if (hashParams.locale) params.locale = hashParams.locale;
+ if (hashParams.maprules) params.maprules = hashParams.maprules;
if (hashParams.offset) params.offset = hashParams.offset;
+ if (hashParams.photo_overlay) params.photo_overlay = hashParams.photo_overlay;
+ if (hashParams.presets) params.presets = hashParams.presets;
+ if (hashParams.source) params.source = hashParams.source;
if (hashParams.walkthrough) params.walkthrough = hashParams.walkthrough;
if (id.data("gpx")) {