Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Error when using Browserify #26

Closed
kneemer opened this issue Mar 2, 2015 · 0 comments · Fixed by #27
Closed

Error when using Browserify #26

kneemer opened this issue Mar 2, 2015 · 0 comments · Fixed by #27

Comments

@kneemer
Copy link
Contributor

kneemer commented Mar 2, 2015

The following error occurs in the console:
Uncaught TypeError: Cannot read property 'crs' of undefined

When using Browserify, the map variable at https://github.com/Esri/esri-leaflet-renderers/blob/master/src/FeatureLayerHook.js#L16-L17 refers to the container element of the map:
screen shot 2015-03-01 at 10 09 48 pm

instead of the full map object:
screen shot 2015-03-01 at 10 09 28 pm

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

Successfully merging a pull request may close this issue.

1 participant