//= require qs/dist/qs
OSM = {
-<% if defined?(PIWIK) %>
- PIWIK: <%= PIWIK.to_json %>,
+<% if defined?(Settings.matomo) %>
+ MATOMO: <%= Settings.matomo.to_json %>,
<% end %>
MAX_REQUEST_AREA: <%= Settings.max_request_area.to_json %>,
mapParams.lon = parseFloat(params.mlon);
mapParams.lat = parseFloat(params.mlat);
mapParams.zoom = parseInt(params.zoom || 12);
- } else if (loc = $.cookie('_osm_location')) {
+ } else if (loc = Cookies.get('_osm_location')) {
loc = loc.split("|");
mapParams.lon = parseFloat(loc[0]);
mapParams.lat = parseFloat(loc[1]);
return args;
}
- hash = Qs.parse(hash.substr(i + 1));
+ hash = Qs.parse(hash.slice(i + 1));
var map = (hash.map || '').split('/'),
zoom = parseInt(map[0], 10),