Tutorial by Examples

OpenLayers 3 or as it is referred OL-3 is a Javascript Library for web mapping, so in order to use it you'll need to add it in your html: first add the ol.css file to use the map styling of OL-3 : then add the ol.js file : you can also download OL-3 from the official site www.openlaye...
<link rel="stylesheet" href="http://openlayers.org/en/v3.17.1/css/ol.css" type="text/css"> <script src="http://openlayers.org/en/v3.17.1/build/ol.js"></script>
<html> <head> <title>Getting started</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ol3/3.17.1/ol.css" type="text/css"> <script src="https://cdnjs.cloudflare.com/ajax/libs/ol3/3.17.1/ol...
var baseLayer = new ol.layer.Tile({ visible: true, preload: Infinity, source: new ol.source.BingMaps({ // We need a key to get the layer from the provider. // Sign in with Bing Maps and you will get your key (for free) key: 'Ap9VqFbJYRNkatdxt3KyzfJxXN_9GlfA...

Page 1 of 1