Amazon Location
In this guide, you will learn the basics of visualizing a CARTO layer with the Amazon Location service. There are no previous requirements to complete this guide, but a basic knowledge of web development would be helpful.
After completing this guide, you will have your first Amazon Location map with a CARTO dataset!
Basic setup
There are two main steps for visualizing a CARTO layer: first you need to create a map resource in your AWS account followed by the creation of a web application that uses a rendering library to visualize the map with the corresponding CARTO layer.
For this guide, we have already created a map resource called “Rivers” in our AWS account. If you want to create your own map resource, you can follow the instructions from the Amazon Developer Guide.
Follow the Using MapLibre GL JS with Amazon Location Service tutorial to create a basic map with the MapLibre GL JS rendering library.
At this point you will have a basic map with the Rivers Amazon Location map resource:
In order to visualize the CARTO dataset, we are going to use the fetchMap function to add a map that was previously created in CARTO Builder.
View this step here
Adding data from CARTO
By providing your own CARTO map id you can load in any maps you have created in CARTO Builder, with all of the styling preconfigured.
Finally we need to add the layer to the map:
All together
You can explore the final step here.
Last updated
Was this helpful?
