$(document).ready(function () {
var id = $("#id-embed");
- if (id.data("key")) {
- var hashParams = OSM.params(location.hash.substring(1));
+ if (id.data("configured") === true) {
+ var hash = location.hash.substring(1);
+ var hashParams = hash ? OSM.params(hash) : {};
var mapParams = OSM.mapParams();
var params = {};