I am looking for detailed steps to implement this tile provider https://leaflet-extras.github.io/leaflet-providers/preview/ or http://mapstyle.petschge.de/
I am newbie where i am not knowing how to go about in implementing to the existing code which is shown below
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>Simple map</title>
<link rel="stylesheet" href="http://openlayers.org/en/v3.0.0/css/ol.css" type="text/css">
<style>
</style>
</head>
<body>
<!--html element which contains the map-->
<div id="map" class="map"></div>
<script src="http://openlayers.org/en/v3.0.0/build/ol.js" type="text/javascript"></script>
<!--our app code-->
<script>
var map = new ol.Map({
target: 'map', // The DOM element that will contains the map
renderer: 'canvas', // Force the renderer to be used
layers: [
// Add a new Tile layer getting tiles from OpenStreetMap source
new ol.layer.Tile({
source: new ol.source.OSM()
})
],
// Create a view centered on the specified location and zoom level
view: new ol.View({
center: ol.proj.transform([103.986908, 1.353199], 'EPSG:4326', 'EPSG:3857'),
zoom: 18,
rotation: 68*Math.PI/180
})
});
</script>
</body>
</html>
the above code will just display a map using osm layer looking for a way to change it please help