OpenLayers: Difference between revisions

From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs)
Brian Wilson (talk | contribs)
Line 25: Line 25:
=== live server ===
=== live server ===


Sometimes I have http://maps.wildsong.biz/ up on [[Bellman]]. Not right now. Maybe tonight.
Lately I have been working on https://map46.com
Sometimes I have http://maps.wildsong.biz/ up on [[Bellman]].


=== at github ===
=== at github ===


Currently I am using Node.JS and testing on my desktop.
Currently I am using Node.JS and testing on my desktop.
You can see code I have running here: https://github.com/brian32768/OpenlayersTests
You can see code I have running here: https://github.com/brian32768/map46 and https://github.com/brian32768/OpenlayersTests


The code is built around [[Microsoft Visual Studio]] and [[Parcel]].
For the first week I extensively used [[Microsoft Visual Studio]] and [[Parcel]].
Since then I have learned enough JavaScript that I've just been using Emacs to edit, Parcel to build, and Chrome to test and debug.


That project has samples with OpenLayers 2, 4, and 5 (3 and 4 are the same basically so only one).
That project has samples with OpenLayers 2, 4, and 5 (3 and 4 are the same basically so only one).

Revision as of 17:02, 18 October 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 ebooks via Safari but they are for version 3.

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. Or 5.

My test samples

live server

Lately I have been working on https://map46.com Sometimes I have http://maps.wildsong.biz/ up on Bellman.

at github

Currently I am using Node.JS and testing on my desktop. You can see code I have running here: https://github.com/brian32768/map46 and https://github.com/brian32768/OpenlayersTests

For the first week I extensively used Microsoft Visual Studio and Parcel. Since then I have learned enough JavaScript that I've just been using Emacs to edit, Parcel to build, and Chrome to test and debug.

That project has samples with OpenLayers 2, 4, and 5 (3 and 4 are the same basically so only one). Because there were BOOKS on 2 and 3 I started there and built samples, got them running and then stepped up.

There is an example using XYZ so that I could test an ESRI tile server.

Now I am now adding a Bootstrap + OpenLayers sample so that I can make something that looks like a real web site.