Display Ellipsis Drive layers in your app
Last updated
Was this helpful?
Last updated
Was this helpful?
Ellipsis Drive allows you to easily use layers in your own apps. While you can of course , in many cases it can be easier to use one of the . These packages offer simple one-liners to add a layers and take care of styling and rendering for you. We recommend using Leaflet in case you are looking for an easy to use library and mapLibre if you are looking for a more heavy duty solution.
To display a layer you always need the layer id. Adding the timestamp id and style id are optional and tell the app which timestamp to use within the layer and how to style it. These id's can be found in the layer metadata that can be obtained with this or via the .
If the layer you wish to display is not set to 'Link Sharing' or 'Public' you will need to use a token for authentication. You can check out to learn how to obtain these tokens. We recommend to use for apps.
Oftentimes you'll need additional options to properly organize the layers that you want to display. For example, you may want to organize layers based on the clients that will need access to them. In this case it can be good to organize your layers using folders. Then you can for each of your users and store in your backend which folder id corresponds to which user. When the user visits your app, you can create an for the correct folder and pass both the access token and folder id to your app. Your app can now use this folder id and token to look for content and display this content.
Looking for content can be done by simply or by it. Traversing can be great in case you have a lot of content and you organised it in a predefined way. For example in {category}/{year}/
Once you succeeded in displaying the layers you might be interested in adding additional functionality. Such as analysis or dynamic styling. Check out for more on this.