We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1b7af4 commit 3aca24dCopy full SHA for 3aca24d
assets/javascripts/app.js
@@ -59,16 +59,17 @@ var App = (function ($, publ) {
59
defaults = $("#ol-defaults").data();
60
defaults.geocoderUrl = "https://***REMOVED***/geojson";
61
62
- if (defaults.lon === null) {
+ // Check if params are null or undefined (use "==" instead of "===" to detect both)
63
+ if (defaults.lon == null) {
64
defaults.lon = quick_hack.lon;
65
}
- if (defaults.lat === null) {
66
+ if (defaults.lat == null) {
67
defaults.lat = quick_hack.lat;
68
- if (defaults.zoom === null) {
69
+ if (defaults.zoom == null) {
70
defaults.zoom = quick_hack.zoom;
71
- if (defaults.maxzoom === null) {
72
+ if (defaults.maxzoom == null) {
73
defaults.maxzoom = quick_hack.maxzoom;
74
75
0 commit comments