Skip to content

Instantly share code, notes, and snippets.

@suddeb suddeb/Mapbox_1

Last active Aug 29, 2015
What would you like to do?
<apex:page showHeader="true" standardStylesheets="false" sidebar="false">
<meta charset="urf-8"/>
<title> First Mapbox Map</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=mo' />
<script src=''></script>
<link href='' rel='stylesheet' />
<style type="text/css">
body { margin:0; padding:0; }
#map { height:600px; width: 600px; }
<script type="text/javascript">
window.onload = function(){
L.mapbox.accessToken = '<ENTER YOUR DEFAULT PUBLIC TOKEN>'; ='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
<div id="map"></div>
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.