Replacing name label
Map design Custom data visualization
This collection of articles presents a suggested workflow for creating Custom data visualizations.
- Creating a custom vector dataset (GeoJSON)
- Data sources
- Replacing data sources
- Replacing name label
- Editing JSON
- Map data visualization with MapTiler Cloud
- Preparing gridded raster data for visualization
- How to add MapTiler attribution to a map
This article aims to provide guidance on replacing and creating new names for cities and streets. Understanding this process is crucial for several reasons. We will explore the use of MapTiler Vector Data Editor and MapTiler Customize tools.
Common Reasons for Changing Names
- A name could have been changed officially recently, and this change has not been populated in the various sources we are using, for example, OpenStreetMap.
- You want to use fixed names across all languages.
- You just want to make a funny map.
Step-by-Step Guide
Step 1: Create a New Dataset
As a first step, you will need to create a new dataset. This can be done directly in the Cloud by going to Data and starting a new dataset.
Follow by opening the vector editor itself.
Step 2: Create a Data Point for City Label
The following video will showcase how you can create a data point with the name you want to have displayed on the map.
In the example, I have decided to create a new data point to replace the name of the city “Kopřivnice” with “Tatra City” as it is known for manufacturing famous Tatra trucks.
- Search for the city you want to rename.
- Change the basemap to either any of your custom maps or our standard maps; I have chosen Streets.
- Create a point over the label we will be replacing.
- Add a new property (name) and populate it with the desired name for our point (Tatra City).
- Save and publish the changes in the vector editor.
- You have prepared the data point with the new name.
Step 3: Add Data Point to the Map
In the cloud, go to Maps and choose the map you want to edit. In my case, I will be editing our base Streets style, but you can use any of your already made custom maps or any of our standard maps.
We are in our customize tool where you can style the map to fit your needs.
The following video will showcase how you can hide the original name and add the new layer with the data point we have created.
- Zoom to the location of the city we will be replacing.
- You can directly click on the label to open the specific layer.
- Then switch from Style to Data and click on the specific point to copy the “name” tag.
- You need to create a filter to hide the label for this specific name. To do that, click on add a filter and choose a name.
- Paste the name into the field and hit enter or click on +.
- Click on the green dot to make it red—this will hide the city with that name from our map.
- We will add our newly created data as a layer to our map.
- Press Alt+N or hit + in Layers.
- Search for the name we have saved the data point under, “Tatra City.”
- Choose the data and hit Continue.
- Select the Geometry. In this case, we are using Point followed by Visualization. As we want to see the name, we will choose Symbol. You can also add the name for the layer for better organizing.
- Now, you can style the layer manually or copy the style from the Town Layer (right-click and copy layer properties, then right-click on our new layer and paste style properties) to make it identical to the other city labels.
- What’s left to do is to save and publish the map.
Congratulations, you have now successfully changed the name of the city.
Street Name
We can use the same process for the entire street. The main difference is that instead of creating a single point, we will have to create a LineString over the specific street we want to rename.
In this article, we have provided a comprehensive guide on how to replace and create new names for cities and streets using the MapTiler Vector Data Editor and MapTiler Customize tools. The key steps involve creating a new dataset, adding and editing data points, and then integrating these changes into your map.
Key Takeaways:
- Creating a New Dataset: Begin by creating a new dataset in the MapTiler Cloud to house your custom data.
- Editing Names: Use the vector editor to create a data point you want to rename, and assign it a new name.
- Adding Data to Maps: Integrate the new data point into your map using the MapTiler Customize tool, ensuring that the original name is hidden and your new name is displayed.
Next steps
Continue to Editing JSON to learn how to edit JSON in MapTiler Customize.
Related guides
- Add a new style layer
- Add custom watermark to your map
- Change language in a map
- Choose a map style
- Contours and mountain peaks in feet
- Creating a custom vector dataset (GeoJSON)
- Data sources
- Disputed borders on your maps
- Edit style: Quick customization of the map (Roads and traffic)
- Editing JSON