Create Custom Overlay
In this guide, you will learn how to add a dataset based on a GeoJSON file and link the dataset to a style. The style is then applied to a map.
The dataset is available as an overlay, with the individual points presented as OverlayItem.
How it works
- Import the dataset and create the style in Magic Lane Console.
- Apply the style containing the dataset to a map.
- Interact with the map to see the overlay items.
Import the Dataset
We will need a GeoJSON file containing custom POI information. You can use the GP Surgeries in York or any other GeoJSON containing points data. Download the GeoJSON file.
For this example, a Magic Lane account is mandatory. Login into your Magic Lane account or register a new account.
Enter the Datasets tab from the Magic Lane Console and click the Upload button from the top right corner.

Drag and drop the downloaded GeoJSON file into the upload area or select the file manually. Click the Upload button to finish. The dataset should now be visible in the list.
At the moment, there are no option to automatically update the dataset.
Create a Map Style
Enter the Styles tab from the Magic Lane Console and click the New Style button from the top right corner. Alternatively, you can use an existing style as a base by clicking the Upload button and selecting a style file.

Select a template and a variation. Select Create New Style from the bottom side.

Under the Available Layers section, expand the Custom group and select the dataset you just uploaded. The dataset should now be visible on the map in the relevant geographic region (the city of York, UK).

If the privacy switch is set to Private, the dataset will only be available in apps activated with a token created by you which have the associated style applied. If the privacy switch is set to Public, the dataset will be available in all apps activated where the associated style is applied, regardless of the token used.
Drag and drop the dataset from the Available Layers section to the Selected Layers section. The dataset is now linked to the style. The points should be visible on the map as pinpoints icons.

The dataset needs to be dragged under the Selected Layers section to be visible on the map on the exported style.