Code base for the book Mastering OpenLayers 3.
Written by: Gábor Farkas
Mastering OpenLayers 3 Code Base by Gábor Farkas is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
-
/chapters
HTML, CSS, and JavaScript code for the examples provided by the book. There is one .html, one .css, and one .js file for each full example. There are also partial examples, which should be linked to the appropriate full example before using. -
/js
OpenLayers 3, and other compressed third party libraries needed for the examples. -
/res
Various resources (mainly vector files, and thumbnail images for custom controls) used in the book. -
/src
OpenLayers 3 source files needed to build custom libraries. -
/README.md
This readme file. -
/proxy.py
Proxy file for overriding CORS restrictions. Copy it in your web server'scgi-bin
folder. Note: this proxy does not contain any security restrictions. Be sure, no one can exploit it, use it for testing purposes only, and use it on your own risk. Adapted from: https://trac.osgeo.org/openlayers/browser/trunk/openlayers/examples/proxy.cgi.
- On page 54, it is said, strategies affect the rendering process. Contrary, strategies affect the download process of WFSs, or other REST API based layers. They alter the extent with which the loader function is called. Thus, setting a strategy only has effect, when it is used with the default loader function (
ol.featureloader.loadFeaturesXhr
).