Debugging Openlayers 3

I am currently using the compiled version at this link:

But when something goes wrong, debugging is impossible, since the library is minimized.

Is there a way to link a file containing the full source code?

A few weeks ago I used ol-whitespace.js for us, but now I can not find it anywhere.

+4
source share
2 answers

I do not see your link, but this file is now called ol-debug.js. You can find it next to ol.js in the build folder.

+2
source

To clarify Christoph's answer, the OpenLayers Quick Start Guide points to the following shortened file:

<script src="http://openlayers.org/en/v3.0.0/build/ol.js" type="text/javascript"></script>

You can replace this as follows:

<script src="http://openlayers.org/en/v3.0.0/build/ol-debug.js" type="text/javascript"></script>

+3
source

All Articles