Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set Up OL3 with Closure

Does anybody have a site or a tutorial of how to set up Openlayers 3 with Closure? I tried it now for a few days and still have to give up.

You need the Closure Library to set up the Open Layers Library.

But how do I combine this? At the moment I use the built ol.js by OpenLayers which does its deed, but in the future this may not be the right thing.

It seems to be important where each script is placed, but since I am using this on a huge website, with Java + Spring, IBATIS, postgreSQL and JAWR, it is rather complex to implement Closure and Openlayers into this, without just using one or two Javascript libraries.

like image 581
DonMarco Avatar asked Nov 28 '25 14:11

DonMarco


1 Answers

You must link the ol-deps.js and goog/base.js in your HTML

like image 65
Marcel GJS Avatar answered Nov 30 '25 03:11

Marcel GJS



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!