OpenLayers: Difference between revisions

From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs)
Brian Wilson (talk | contribs)
mNo edit summary
Line 3: Line 3:
== What is OpenLayers? ==
== What is OpenLayers? ==


OpenLayers (http://openlayers.org/) is a library of Javascript code you use on your Web server.
OpenLayers (http://openlayers.org/) is Javascript code you use on your Web server.
You reference it from your own HTML and Javascript based pages, to put maps into your web site.
You reference it from your own HTML and Javascript based pages, to put maps into your web site.


Docs for programmers: http://openlayers.org/en/latest/doc/
Docs for programmers: http://openlayers.org/en/latest/doc/


OpenLayers is very stable code. Version 4.3.2 was recently released. It supports tiled raster and vector layers. It supports editing.
OpenLayers is very stable code. Version 5 was recently released. It supports tiled raster and vector layers. It supports editing.
It seems to support everything that I want to do.
It seems to support everything that I want to do.


== Books ==
== Books ==


OpenLayers is so popular in fact that there are even books about it.
OpenLayers is so popular that ''there are even books about it''! None for version 5 yet that I know of.
And it is so stable that even a book release two years ago is very useful.
I removed all the books I had listed here because they were all more than 2 years old. :-) You can look in the History tab if you really want.
I removed all the books I had listed here because they were all more than 2 years old. :-) You can look in the History tab if you really want.


The Marin library has 3 ebooks.
The Marin library has 3 ebooks.


I just bought OpenLayers 3.x Cookbook and I am going through it.
I bought OpenLayers 3.x Cookbook and I am going through it.
Yes.. OL 4.x is out, but the big break was 2->3, 3->4 is a smaller jump and there aren't books on 4 yet.
Yes.. OL 4.x is out, but the big break was 2->3, 3->4 is a smaller jump and there aren't books on 4 yet.


== My simple example ==
== My simple example ==


Go see http://maps.wildsong.biz/ which I will be putting up on [[Bellman]] because I am fond of that machine right now.
Sometimes I have http://maps.wildsong.biz/ up on [[Bellman]]. Not right now.  
Bellman is just so cute.


Choose a background. I want to use an ESRI basemap, to show that I can.
Currently I am using Node.JS and testing on my desktop.


Let's start with this: https://github.com/kevinsigwart/EsriOpenLayersClient
You can see code I have running here: https://github.com/brian32768/OpenlayersTests


cd /var/www/maps/html
git clone [email protected]:kevinsigwart/EsriOpenLayersClient.git


Now go to http://maps.wildsong.biz/EsriOpenLayersClient/ and see what we've done.
[[Category: OpenLayers]]
 
These are based on OpenLayers 2.13.1 but I want to use OpenLayers 4.3.2!
 
Change the ../lib/openlayers.js line to use https://cdnjs.cloudflare.com/ajax/libs/openlayers/4.3.2/ol-debug.js
Not that simple though!
 
 
[[Category: OepnLayers]]
[[Category: GIS]]
[[Category: GIS]]

Revision as of 18:25, 14 August 2018

Search for OpenLayers on this wiki to find other relevant pages. Or look in the category.

What is OpenLayers?

OpenLayers (http://openlayers.org/) is Javascript code you use on your Web server. You reference it from your own HTML and Javascript based pages, to put maps into your web site.

Docs for programmers: http://openlayers.org/en/latest/doc/

OpenLayers is very stable code. Version 5 was recently released. It supports tiled raster and vector layers. It supports editing. It seems to support everything that I want to do.

Books

OpenLayers is so popular that there are even books about it! None for version 5 yet that I know of. I removed all the books I had listed here because they were all more than 2 years old. :-) You can look in the History tab if you really want.

The Marin library has 3 ebooks.

I bought OpenLayers 3.x Cookbook and I am going through it. Yes.. OL 4.x is out, but the big break was 2->3, 3->4 is a smaller jump and there aren't books on 4 yet.

My simple example

Sometimes I have http://maps.wildsong.biz/ up on Bellman. Not right now.

Currently I am using Node.JS and testing on my desktop.

You can see code I have running here: https://github.com/brian32768/OpenlayersTests