Skip to content

Instantly share code, notes, and snippets.

@luizsanches luizsanches/osm.html
Created Jun 10, 2017

What would you like to do?
<link rel="stylesheet" href="" integrity="sha512-07I2e+7D8p6he1SIM+1twR5TIrhUQn9+I6yjqD53JQjFiMf8EtC93ty0/5vJTZGF8aAocvHYNEDJajGdNx1IsQ==" crossorigin=""/>
background: #fff;
border: none;
height: 540px;
width: 100%;
box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
<div id="location-map"></div>
<script src="" integrity="sha512-A7vV8IFfih/D732iSSKi20u/ooOfj/AGehOKq0f4vLT1Zr2Y+RX7C+w8A1gaSasGtRUZpF/NZgzSAu4/Gc41Lg==" crossorigin=""></script>
<script type="text/javascript">
var map ='location-map').setView([ -1.4572002, -48.4653295], 17);
mapLink = '<a href="">OpenStreetMap</a>';
'https://{s}{z}/{x}/{y}.png', {
attribution: 'Map data &copy; ' + mapLink,
maxZoom: 20,
var marker = L.marker([-1.4572002, -48.4653295]).addTo(map);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.