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

Labelgun fails with none debug version of OpenLayers for SVG layer example #18

Open
JamesLMilner opened this issue Jul 11, 2017 · 4 comments

Comments

@JamesLMilner
Copy link
Contributor

Haven't quite got to the bottom of it, but something to do with the fact that OL is minifed by closure compiler, the objects have mangled property names. Hard to debug as no actual error is thrown however. Will try to dig in when I have a moment or someone needs it desperately!

@tomchadwin
Copy link
Contributor

Confirmed - never seen any difference in behaviour between debug and minified versions before. Really odd.

@tomchadwin
Copy link
Contributor

Are you calling a private method or some such, rather than the published API?

@JamesLMilner
Copy link
Contributor Author

@tomchadwin possibly, I need to take a look at all the methods I use and figure out which one was problematic.

@JamesLMilner JamesLMilner changed the title Labelgun fails with none debug version of OpenLayers Labelgun fails with none debug version of OpenLayers for SVG layer example Sep 22, 2017
@JamesLMilner
Copy link
Contributor Author

JamesLMilner commented Oct 1, 2017

Change this to:

<script src="https://cdnjs.cloudflare.com/ajax/libs/openlayers/4.3.3/ol-debug.js"></script>

to:

<script src="https://cdnjs.cloudflare.com/ajax/libs/openlayers/4.3.3/ol.js"></script>

to reproduce.

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

No branches or pull requests

2 participants