Comments (5)
Using your own PubNub API Keys with Eon Maps
You can set the pubnub
init parameter when using Eon Maps. This allows you to configure PubNub client connections with extra security options such a auth_key
and your cipher_key
. You should also set secure: true
and ssl: true
as well.
<div id="map"></div>
<script>
var pubnub = PUBNUB({ subscribe_key : 'my_own_key', ssl : true });
var channel = 'my-map';
eon.map({
pubnub : pubnub, // < - - - here < - - - //
channel : channel,
id : 'map',
mb_id : 'mapbox.streets',
mb_token : 'pk.ey31IjoiaWRtc3giLCJhIjoiZZ1zMGI2ZjBlNTMxZjk5YTEwNjM5WNJlOWI4MmJiZGIifQ.U1jMQo2QVeuUtt85oD7hkQ'
});
</script>
I added the docs here: https://github.com/pubnub/eon-map/blob/master/README.md#configure-using-your-own-pubnub-api-keys
from eon-map.
Hey @xianlin,
Sorry, the documentation was outdated. The method you (and @stephenlb) describe is correct.
Ian
from eon-map.
👍 👍👍 👍
from eon-map.
Thank you guys, finally got it working... will try other services Pubnub offers...
from eon-map.
Very nice!
from eon-map.
Related Issues (20)
- Bug: pubnub not defined
- Channel Groups and Distributed Systems HOT 1
- where do i get the mb_id and mb_token? HOT 1
- Consider adding support for presence
- Uncaught TypeError: L.RotatedMarker is not a constructor HOT 2
- Change marker (pop-up / color) based on event HOT 2
- grid.json error
- EON Map Critical Issue - Displaying Marker Data HOT 1
- If "channels" is missing, no error is thrown
- Using JSON variable keys is confusing to new developers.
- eon-map example 'multiple.html' missing comma
- multiple markers from multiple sources HOT 1
- How to configure with Google maps ? HOT 2
- Example on Transform function
- Do you have a parameter for "mapbox style" HOT 1
- Adding additional Layers (markers and lines)
- mbId no more possibe? New Mapbox API HOT 2
- One Marker with Path shown HOT 1
- Wildcard subscribe not supported?
- Any way to pass options to leaflet?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eon-map.