-
Notifications
You must be signed in to change notification settings - Fork 799
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
proj4 is not defined in TiledMapLayer #1019
Comments
thanks for the report. i'll have to think about how we might make this check more friendly for bundlers. luckily the issue is pretty benign (ie: we're just logging an irrelevant error in the console in some situations where |
@jgravois No problem, that would be awesome. Btw, I played around with it a bit this morning and adding something like this on top of that check for Yeah, but I guess it won't work in a situation when you don't have |
@jgravois I'm getting proj4 is not defined error. Did you fix this....do I need the latest leaflet library?
Live in production issue go to Essential Fish Habitat (EFH) Catalog |
the fix has landed in that said, its not going to solve your problem. besides the cryptic error you see in the console, your you have to either:
|
What do you recommend? I'm not sure what CRS even is. Is the mixing and matching tile service issue on the map service side or how I call the map services? |
you should ask the data provider to republish their tile services with a tiling scheme that has the same wkid, origin, and levels of detail as our ArcGIS Online basemaps. until they do, you can't mix and match their tile services. you could use a |
Yeap, you are right, we did use dynamicMapLayer and had issues...not sure if it was performance |
Any browser you like
L.version
):1.2.0
L.esri.VERSION
):2.1.1
Leaflet
andesri-leaflet
together withproj4leaflet
proj4leaflet
has a dependency ofproj4
proj4leaflet
AMD style without importingproj4
manually anywhere else sinceproj4leaflet
will pick it up from dependencies and will work fineWhat happens is that when doing this I will get an error on this line https://github.com/Esri/esri-leaflet/blob/master/src/Layers/TiledMapLayer.js#L141 saying
Uncaught ReferenceError: proj4 is not defined
.I was expecting for this to work fine, since only the
proj4leaflet
library is dependant onproj4
andesri-leaflet
is not.It is quite hard to replicate this problem using
jsbin
, since I usenpm
andpackage.json
andwebpack
.Webpack
Adding this as a workaround helps to get it work and no errors are shown, but I think that should not be required for
esri-leaflet
to work without issues.The text was updated successfully, but these errors were encountered: