OpenGIS / Waymark

Waymark adds powerful mapping features to WordPress that are easy to use. Create beautiful, interactive Maps that you can customise to suit your needs.
https://www.waymark.dev
GNU General Public License v2.0
20 stars 6 forks source link

Uncaught TypeError: Assignment to constant variable. #12

Closed huubl closed 1 year ago

huubl commented 1 year ago

Hi,

The maps don't load anymore, I get:

Uncaught TypeError: Assignment to constant variable.
    at Waymark_Map.get_type (waymark-js.min.js:9:141066)

Everything seems to work again when search and replace for(i in to for(var i in in:

https://github.com/morehawes/waymark/blob/master/assets/dist/waymark-js/js/waymark-js.min.js

morehawes commented 1 year ago

Hi @huubl,

Thanks for reaching out. Please ensure you are using the latest version (v0.9.20) and would you be able to provide a link to a page where I can see this happening?

Cheers,

Joe

huubl commented 1 year ago

Hi @morehawes,

I have fixed it and made a pull request: Bug fix: Assignment to constant variable

Thanks, Huub

morehawes commented 1 year ago

Hi @huubl,

Thanks for the PR and apologies for not getting to this sooner.

I have merged this and have released version 0.9.21 :)

Cheers,

Joe

huubl commented 1 year ago

Thanks @morehawes for merging and releasing a new version this quick!