Hello ! I would like to start with a simple map example and I am here: http://wiki.openstreetmap.org/wiki/OpenLayers_Simple_Example There is somethings basically wrong: The OSM library mentioned, "OpenLayers.js" does not exists. If you go to their webseite, you'll lost in space, because there are hundreds of scripts, but not that mentioned one. Any help would be great ! Thanks anyway and best regards, Manfred asked 19 Nov '15, 04:51 mabra77 aseerel4c26 ♦ |
the www.openstreetmap.org website currently uses leaflet as the library for slippy maps instead of OpenLayers. You can follow the example here instead: http://leafletjs.com/examples/quick-start.html answered 19 Nov '15, 06:11 PlaneMad aseerel4c26 ♦ |
In general people prefer to use Leaflet as it is somewhat less complex than OpenLayers and works better on mobile devices. Chris Hill wrote a few how-tos for Leaflet on this blog (e.g. http://chris-osm.blogspot.co.uk/2013/11/using-leaflet-v07_21.html): these are probably better documented and easier to follow than the wiki. answered 19 Nov '15, 11:00 SK53 ♦ |
I have put up a note on https://wiki.openstreetmap.org/wiki/OpenLayers_Simple_Example#Instructions - with a download link for version two (which the example seems to be based on). The example works - I have just tried it. A example for the current version 3 is at http://openlayers.org/en/v3.11.1/doc/quickstart.html answered 19 Nov '15, 06:26 aseerel4c26 ♦ |