Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with /^world/.match(name) #20

Open
sergemarkin opened this issue Jun 3, 2012 · 0 comments
Open

Issue with /^world/.match(name) #20

sergemarkin opened this issue Jun 3, 2012 · 0 comments

Comments

@sergemarkin
Copy link

Chrome complained on this statement in GeoExplorer.js. This error prevented GeoExplorer from complete initialization. As a result I had GeoExplorer in semi-loaded state and there were no ability to add layers. Background layer also was missed.

I've did a hack - replaced this instruction with statement true. To be more specific (I've modified minimized version - have no time to dig deeper):

It was like this:

OpenLayers.Util.applyDefaults({attribution:/^world/.match(name)?"MapBox | Some Data © OSM CC-BY-SA |..."

and I've changed into:

OpenLayers.Util.applyDefaults({attribution:true?"MapBox | Some Data © OSM CC-BY-SA |..."

After this modification it has started working.

Looks like this way of using RegExp dont work. At least in Chrome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant