-
Notifications
You must be signed in to change notification settings - Fork 78
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
Use of other map tiles not working #9
Comments
Are you using systemjs? It works with webpack, but could not make it with SystemJS with those error. Could not figure out why. |
I'm using webpack. It's very strange because seems a problem with openlayers library. If I debug and while in your class Tile reassign options.source to new source like new ol.source.Stamen({ layer: 'watercolor' }), while in console it works. But if it comes from the props doesn't. |
Same issue here. Using the default tiles it is working. But changing the source to a custom tile server gives me an error. Also using webpack
a.V is really not defined. Just by guessing it could be one of the tile functions, that don't seem to be minified, but are called like they were? Edit: |
I debugged the minified source (formatted) in chrome, and probably found the original openlayers code, causing the problem. This looks like the following code https://github.com/openlayers/openlayers/blob/9fc0fb5e74146cd9a0c99926bed1a0f51fc745ad/src/ol/layer/layer.js#L124-L127 This would mean the source.getSourceState() function is not defined (for whatever reason). Hope this helps narrowing down the problem |
I'm having the same problem |
I am also having this problem |
+1 😢 |
I'm guessing it has something to do with the embedded version of Openlayers in this library vs. the project dependency needed for This could be fixed if we could use the embedded OL. |
@ivesdebruycker please make PR if you find a solution. I just try to wrap it, and I am not an openlayer expert. 😢 |
@allenhwkim @ivesdebruycker Did you ever get a solution to this? I'm having the same issue. |
@martinmcneela I wrote a simple React component, which was sufficient for my needs: |
anyone found a solution, integrated other components or found a workaround? |
Hi Allen, thanks for your work in this library. I'm trying to use this in a project but I've found some problems. For example I've found there is some problem using other tiles than default. When you create a Map, using react-openlayers as library, it works with no problem.
But if you use different map tile:
It doesn’t load the map and you can see an error in the console like this:
Uncaught TypeError: Cannot read property 'D' of null
Thanks for your help
The text was updated successfully, but these errors were encountered: