LarsWiegers / laravel-maps

Your laravel maps libary.
https://github.com/LarsWiegers/laravel-maps
MIT License
254 stars 35 forks source link

Multiple Maps Causing Errors #28

Closed ryangurn closed 2 years ago

ryangurn commented 2 years ago

I am attempting to use multiple maps for different purposes on the same page.

This appears to be causing issues with the let map= ...

The error is as follows: SyntaxError: Can't create duplicate variable: 'url'

Any recommendations on how to address this? The url should only need to be declared a single time per page.

Is there a way to prevent it from attempting to create a duplicate variable.

LarsWiegers commented 2 years ago

Hi @ryangurn,

in the the pr is the code to fix this issue. I will be making a release shortly

ryangurn commented 2 years ago

Great thanks!