Tuesday 23 July 2019

css - Using OpenLayers/jQuery without CDN


I was wondering what are the necessary files for hosting a webgis server with OpenLayers3 without using a CDN?


I am testing on a localhost without internet access. It doesn't work to merely copy the direct js (and css) file pointed to by a CDN such as


http://openlayers.org/en/v3.0.0/build/ol.js

to the local webserver as .


Also, the same question holds for jquery and bootstrap. I had






But I wasn't sure how to get a complete local version for those.



Answer



Download the v3.0.0 distribution from https://github.com/openlayers/ol3/releases , then copy the js file(s) inside the build/ subdirectory to your webserver.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...