Clyde Cupple - 2015-08-12 21:28:51 -
In reply to message 2 from Ashraf Gheith
Hello Ashraf,
The code is below. It is from the first php file you had us put together. It is the index.php. I'm new to this so I wanted to make sure I was not missing something. I thought there was a chance that the layers had not been added but wanted to make sure. Look forward to your thoughts.
!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Leaflet basic example</title>
<link rel="stylesheet" href="css/leaflet.css"/>
<script src="js/leaflet.js"></script>
</head>
<body>
<div id="map" style="width: 600px; height: 400px"></div>
<script>
var map = L.map('map').setView([51.505, -0.09], 13);
L.tileLayer( 'https://' + '{s}.tiles.mapbox.com/' + 'v3/{id}/{z}/{x}/{y}.png', {maxZoom: 18, attribution: 'Map data © <a href="http://openstreetmap.org/"> OpenStreetMap </a> contributors, ' + '<a href="http://creativecommons.org/"> CC-BY-SA </a>, ' + 'Imagery (c) <a href="http://mapbox.com"> Mapbox </a>', id: 'examples.map-i875mjb7'}).addTo(map);
</script>
</body>
</html>
Thanks again!