---
source_url: https://www.pubnub.com/docs/sdks/eon-map
title: EON Map API & SDK Docs 1.1.4
updated_at: 2026-06-12T11:25:16.083Z
---

> Documentation Index
> For a curated overview of PubNub documentation, see: https://www.pubnub.com/docs/llms.txt
> For the full list of all documentation pages, see: https://www.pubnub.com/docs/llms-full.txt


# EON Map API & SDK Docs 1.1.4

:::warning Unsupported SDK
PubNub no longer supports this SDK.
Use the [JavaScript SDK](https://www.pubnub.com/docs/sdks/javascript) with modern mapping libraries like [Mapbox GL JS](https://docs.mapbox.com/mapbox-gl-js/), [Leaflet](https://leafletjs.com/), or [Google Maps JavaScript API](https://developers.google.com/maps/documentation/javascript). Subscribe to PubNub channels and update map markers/layers in real-time using the SDK's message listeners.
:::

## Get code

### Hotlink

```html
<script src="https://pubnub.github.io/eon/v/eon/1.1.0/eon.js"></script>
<link rel="stylesheet" href="https://pubnub.github.io/eon/v/eon/1.1.0/eon.css"/>
```

### Bower

:::warning Bower Deprecated
Bower has been deprecated since 2017. Use npm instead for new projects.
:::

```bash
bower install eon-map --save
```

### NPM

```bash
npm install eon-map --save
```

Check out our [webpack example](https://github.com/pubnub/eon-map-webpack).

## Hello World

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

:::note Required UUID
Always set the `UUID` to uniquely identify the user or device that connects to PubNub. This `UUID` should be persisted, and should remain unchanged for the lifetime of the user or the device. If you don't set the `UUID`, you won't be able to connect to PubNub.
:::

```html
<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>
```