diff --git a/app/assets/javascripts/fp/map/map-options.js b/app/assets/javascripts/fp/map/map-options.js index 4a2fb9c9..2bf78a6e 100644 --- a/app/assets/javascripts/fp/map/map-options.js +++ b/app/assets/javascripts/fp/map/map-options.js @@ -24,11 +24,12 @@ // fits Leaflet's template requirements // http://leafletjs.com/reference.html#tilelayer utils.isTemplateString = function(str) { - var re = /^https?:\/\/(\{[s]\})?[\/\w\.\-\?\+\*_\|~:\[\]@#!\$'\(\),=&]*\{[zxy]\}\/\{[zxy]\}\/\{[zxy]\}[\/\w\.\-\?\+\*_\|~:\[\]@#!\$'\(\),=&]*(jpg|png)([\/\w\.\-\?\+\*_\|~:\[\]@#!\$'\(\),=&]*)?$/gi; - return re.test(str); + return true; + // var re = /^https?:\/\/(\{[s]\})?[\/\w\.\-\?\+\*_\|~:\[\]@#!\$'\(\),=&]*\{[zxy]\}\/\{[zxy]\}\/\{[zxy]\}[\/\w\.\-\?\+\*_\|~:\[\]@#!\$'\(\),=&]*(jpg|png)([\/\w\.\-\?\+\*_\|~:\[\]@#!\$'\(\),=&]*)?$/gi; + // return re.test(str); }; utils.conformTemplate = function(template) { return template.replace('{S}','{s}').replace('{X}','{x}').replace('{Y}','{y}').replace('{Z}','{z}'); }; -})(this); \ No newline at end of file +})(this);