Open thedouglenz opened 10 years ago
If you want to test Mapbox on a plain vanailla html page separate from this app: Include
<script src='https://api.tiles.mapbox.com/mapbox.js/v2.0.1/mapbox.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox.js/v2.0.1/mapbox.css' rel='stylesheet' />
and then:
<div id='map'></div>
<script>
L.mapbox.accessToken = pk.eyJ1IjoidGhlZG91Z2xlbnoiLCJhIjoiMm41Z0dTTSJ9.ydxDlbJykhYoLbZC3x42eA';`
var map = L.mapbox.map('map', 'examples.map-i86nkdio') .setView([40, -74.50], 9);
</script>
Currently there is a Mapbox map object sitting on the dashboard for logged in users. It only shows up because in public/css/global.css, I have specified the height for the map div.
Setting the height is not the solution and will ultimately cause problems for different browser window sizes. The Mapbox needs to scale appropriately with its container, which is a purecss pure-u-1-2 div.
Since this is boggling my mind, I'll rate it easy instead of super-super-easy like most design tasks.