Is your feature request related to a problem? Please describe.
Users should be able to generate maps and share them with other users with URLs.
Describe the solution you'd like
The following options are being considered:
Describe alternatives you've considered
Additional context
The user is required to store their kepler.gl in a reachable location using a URL.
It is required the kepler.gl file location will accept CORS from kepler.gl website (or current kepler.gl domain).
Contraints
I am more thinking about something like: __kepler.gl/#/map/mapId__.
In order to generate the mapId we can use a URL shorten service to generate and map the URL to unique and short identifier.
I am considering TinyURL as shorten service since they provide an npm package. Once users save their map to their favorite cloud storage, we can grab the URL and convert to a unique identifier using the TinyURL library.
This is an example:
Users can generate their own short URLs and pass them to Kepler.
Are we constrained ourselves to TinyUrl service?
In order to provide a more flexible service, I am thinking about the ability to use multiple url shorten services. We could specify a parameter in the url to use a particular url shorten service. The previous URL can also be written as: __http://kepler.gl/#/map/yd8o22ph/bitly__
* Questions *
How are we going to integrate this as part of Kepler.gl core?
Is not this implemented already?
http://kepler.gl/#/demo?mapUrl=https://gist.githubusercontent.com/bumbeishvili/fac2b30e3be09259a9b27d8c139b1456/raw/214c8e5b047aa6443a2e18607a216f52e02cfe0b/keplergl.json
@bumbeishvili Thank you for the message.
The current task defines two features:
Once the first feature will be completed, I will be closing this issue.
This is currently implemented using the following approach:
The short url approach will be considered for future roadmap
@bumbeishvili @macrigiuseppe How do I go about creating an external link for my map, I have tried to follow your instructions from your post here
https://beta.observablehq.com/@bumbeishvili/kepler-gl-iframe
But when I follow my map data doesn't seem to load into kepler when the link opens.
Here is my raw map file exported from kepler for reference
If you could help me/ direct me on how is best to make this into a shareable and easly accessible map that would be fantastic.
Thanks in advanced!
Hi @jakeswim145 . I was able to successfully load your visualisation as per the tutorial here - https://beta.observablehq.com/@bumbeishvili/kepler-gl-iframe
Below is the link to your map
https://kepler.gl/#/demo?mapUrl=https://gist.githubusercontent.com/jakeswim145/d47bd98baf87a0d30431848881ec1101/raw/bc4a0bf7213326a508581376ea6b713f994ca167/chinaexports.json
I think the important thing is to add(append) your raw map file link to https://kepler.gl/#/demo?mapUrl=
That should work or something might be misbehaving on your side.
@erickndava thanks for your assistance!
I'll make sure to do this step with my next map!
Thanks
@jakeswim145 @erickndava We are about to launch a new feature that will allow users to create and save maps directly into dropbox user account and automatically generate a permalink to share with other users. Stay tuned!!
This has been implemented!
Most helpful comment
@jakeswim145 @erickndava We are about to launch a new feature that will allow users to create and save maps directly into dropbox user account and automatically generate a permalink to share with other users. Stay tuned!!