简体   繁体   English

使用Closure设置OL3

[英]Set Up OL3 with Closure

Does anybody have a site or a tutorial of how to set up Openlayers 3 with Closure? 有没有人有关于如何使用Closure设置Openlayers 3的网站或教程? 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. 您需要Closure Library来设置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. 目前我使用OpenLayers的内置ol.js做了它的行为,但将来这可能不是正确的事情。

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. 在每个脚本放置的地方似乎都很重要,但由于我在一个巨大的网站上使用它,使用Java + Spring,IBATIS,postgreSQL和JAWR,将Closure和Openlayers实现到这个中相当复杂,而不仅仅使用一个或者两个Javascript库。

您必须在HTML中链接ol-deps.js和goog / base.js

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM