Skip to content

Instantly share code, notes, and snippets.

@suddeb suddeb/Mapbox_1

Last active Aug 29, 2015
Embed
What would you like to do?
<apex:page showHeader="true" standardStylesheets="false" sidebar="false">
<html>
<head>
<meta charset="urf-8"/>
<title> First Mapbox Map</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=mo' />
<script src='https://api.mapbox.com/mapbox.js/v2.2.1/mapbox.js'></script>
<link href='https://api.mapbox.com/mapbox.js/v2.2.1/mapbox.css' rel='stylesheet' />
<style type="text/css">
body { margin:0; padding:0; }
#map { height:600px; width: 600px; }
</style>
<script type="text/javascript">
window.onload = function(){
L.mapbox.accessToken = '<ENTER YOUR DEFAULT PUBLIC TOKEN>';
window.map = L.mapbox.map('map', '<ENTER YOUR PROJECT ID>');
//Let's make the mapbox point to Zurich
map.setView([47.3667,8.5500],12); //This is Zurich's Coordinate
}
</script>
</head>
<body>
<div id="map"></div>
</body>
</html>
</apex:page>
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.