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

Unable to use it via Django Templates #8

Open
aneeq-ur-rehman4 opened this issue Sep 18, 2022 · 1 comment
Open

Unable to use it via Django Templates #8

aneeq-ur-rehman4 opened this issue Sep 18, 2022 · 1 comment

Comments

@aneeq-ur-rehman4
Copy link

Hi, I have been trying hard to use this library to consume Feature Server tiles on Mapbox-gl. Using Django and can't use node to sever Django Templates.

I manage to find CDN for this library at: https://unpkg.com/browse/mapbox-gl-arcgis-featureserver@0.0.7/dist/mapbox-gl-arcgis-featureserver.min.js . After successful loading of files when I try to call "FeatureService" function, the console gives the error: Uncaught ReferenceError: FeatureService is not defined.

Is there any solution to this problem?
(This is my first time reporting any issue, apologies if I'm missing something)

@rowanwins
Copy link
Owner

This probably needs a slight adjustment to the packaging and republishing as I accidentally set the output.name in the rollup config to the filename.

With CDN usage the usage ought to look something like

   new MapboxGlArcgisFeatureserver.FeatureServer()

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

2 participants