MapMapChartEONPubNub EON Map SDK

<script src="https://pubnub.github.io/eon/v/eon/1.0.0/eon.js"></script>
<link rel="stylesheet" href="https://pubnub.github.io/eon/v/eon/1.0.0/eon.css"/>
bower install eon-map --save
npm install eon-map --save

Check out our webpack example.




Call eon.map({}). Check out the table of options below for more information.

<div data-id='map'></div>
<script type="text/javascript">

let channel = 'pubnub-mapbox';

let pn = new PubNub({
	publishKey:   'YOUR_PUB_KEY', // replace with your own pub-key
	subscribeKey: 'YOUR_SUB_KEY'  // replace with your own sub-key
});

let map = eon.map({
	pubnub: pn,
	id: 'map',
	mbToken: 'pk.eyJ1IjoiaWFuamVubmluZ3MiLCJhIjoiZExwb0p5WSJ9.XLi48h-NOyJOCJuu1-h-Jg',
	mbId: 'ianjennings.l896mh2e',
	channels: [channel]
});

</script>