labelgun icon indicating copy to clipboard operation
labelgun copied to clipboard

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

Open JamesLMilner opened this issue 8 years ago • 4 comments

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!

JamesLMilner avatar Jul 11 '17 22:07 JamesLMilner

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

tomchadwin avatar Jul 12 '17 10:07 tomchadwin

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

tomchadwin avatar Jul 12 '17 10:07 tomchadwin

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

JamesLMilner avatar Aug 16 '17 19:08 JamesLMilner

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.

JamesLMilner avatar Oct 01 '17 19:10 JamesLMilner