Get started
Your first map
Upload a CSV of world cities, put it on a new map, color the points by population and publish the map as a link.

- Time: about 10 minutes.
- You need: a running Dezfil and an account on it. To run Dezfil yourself, follow Install first. On an instance someone else runs, ask its admin for an account.
- Data: 48 cities from Natural Earth (public domain) with the columns
name,country,population,latitudeandlongitude. Any CSV with latitude and longitude columns works the same way.
1. Save the cities
Section titled “1. Save the cities”Copy the cities below into a new text file and save it as world-cities.csv.
name,country,population,latitude,longitudeTokyo,Japan,35676000,35.687,139.7495New York,United States of America,19040000,40.7519,-73.982Mexico City,Mexico,19028000,19.4444,-99.1329Mumbai,India,18978000,19.0189,72.855São Paulo,Brazil,18845000,-23.5567,-46.627Shanghai,China,14987000,31.2184,121.4346Kolkata,India,14787000,22.4969,88.3227Dhaka,Bangladesh,12797394,23.725,90.4066Buenos Aires,Argentina,12795000,-34.6006,-58.3995Los Angeles,United States of America,12500000,33.9919,-118.1819Cairo,Egypt,11893000,30.0519,31.248Beijing,China,11106000,39.9308,116.3863Manila,Philippines,11100000,14.6061,120.9803Moscow,Russia,10452000,55.7541,37.6136Istanbul,Turkey,10061000,41.1069,29.0081Paris,France,9904000,48.8686,2.3314Seoul,South Korea,9796000,37.5683,126.9978Lagos,Nigeria,9466000,6.4452,3.3896Jakarta,Indonesia,9125000,-6.1725,106.8275Chicago,United States of America,8990000,41.8319,-87.752London,United Kingdom,8567000,51.5019,-0.1187Lima,Peru,8012000,-12.0461,-77.052Tehran,Iran,7873000,35.6739,51.4224Kinshasa,Congo (Kinshasa),7843000,-4.3278,15.313Bogota,Colombia,7772000,4.5984,-74.0853Bangkok,Thailand,6704000,13.7519,100.5147Santiago,Chile,5720000,-33.4481,-70.669Madrid,Spain,5567000,40.402,-3.6853Toronto,Canada,5213000,43.7019,-79.422Singapore,Singapore,5183700,1.295,103.8539Luanda,Angola,5172900,-8.8363,13.2325Sydney,Australia,4630000,-33.9181,151.1832Riyadh,Saudi Arabia,4465000,24.6428,46.7708Hanoi,Vietnam,4378000,21.0353,105.8481Melbourne,Australia,4170000,-37.8181,144.9731Johannesburg,South Africa,3435000,-26.1681,28.0281Berlin,Germany,3406000,52.5238,13.3996Rome,Italy,3339000,41.8979,12.4813Athens,Greece,3242000,37.9853,23.7314Casablanca,Morocco,3181000,33.6019,-7.6183Addis Ababa,Ethiopia,3100000,9.0353,38.6981Nairobi,Kenya,3010000,-1.2814,36.8147Caracas,Venezuela,2985000,10.5029,-66.919Dakar,Senegal,2604000,14.7178,-17.4751Tashkent,Uzbekistan,2184000,41.3136,69.293Havana,Cuba,2174000,23.1339,-82.3661Auckland,New Zealand,1377200,-36.8481,174.763Stockholm,Sweden,1264000,59.3527,18.0954You should have a file of 49 lines: the header and 48 cities.
2. Sign in
Section titled “2. Sign in”Open your Dezfil address, such as http://localhost:3000. Fill in your Email and Password, then click Sign in. If you just created the first account, you are already signed in.
You should see Home, which greets you by your first name.
3. Create a map
Section titled “3. Create a map”On Home, click New map.
You should see the map builder with an empty map named Untitled map. To rename it, click Untitled map in the bar at the top, delete the name, type World cities and press Enter.
4. Add the cities
Section titled “4. Add the cities”- In the Layers tab of the builder, click Add layer. The Add layer dialog opens on Files, with Upload file selected.
- Drop
world-cities.csvon the box that reads Drop files. Each becomes a queryable table, or click the box and choose the file.

Dezfil uploads the file and stores it as a table. It reads the latitude and longitude columns as each row’s position, so every city becomes a point. Then it adds the table to your map as a layer, closes the dialog and zooms to the cities.
You should see 48 points on the map, a layer card named world_cities with 48 features, and for a few seconds the notice Added world_cities to this map.
5. Color the cities by population
Section titled “5. Color the cities by population”The new layer’s style panel is open under its card. If it is closed, click world_cities.
- Find the Fill section.
- Set Color by to population.

Dezfil sorts the cities into five classes with about the same number of cities in each (Quantile), and gives each class a color from the palette.
You should see the points change color, and the legend in the corner of the map list the five classes with their population ranges.
Every change saves as you make it. Undo, the curved arrow at the top of the page, takes the last one back. To change the look:
- Click the palette to pick another one.
- Click Continuous for a smooth color ramp instead of classes.
- Click a class color or boundary in the panel to edit it.
Every style option is in Build a map.
6. Publish the map
Section titled “6. Publish the map”- Click Publish at the top right.
- Click Publish map.

You should see Published with the map’s link, Copy link and Open. If your browser allows it, Dezfil also copies the link for you, and Copy link reads Link copied for a moment. Anyone with the link can view the map, without an account.
Click Open to see the map as its readers do. To stop sharing it, click Published at the top right, then Unpublish.
Troubleshooting
Section titled “Troubleshooting”The dialog stays open and says “imported as a table: no geometry for a layer”. Dezfil found no coordinate columns it recognizes, or their numbers are not longitude and latitude in degrees. Fix it one of two ways:
- Rename the columns to
latitudeandlongitude, then upload the file again. It becomes a new dataset, so its name ends in_2. This does not help numbers in another coordinate system. - Open Data in the side menu and open the dataset. Click Set geometry and pick Coordinate pair. Choose your columns under Longitude · x and Latitude · y. If the numbers are not in degrees, pick their system under Projection. Then click Apply. Open your map again and add the dataset from Add layer › Tables.
Publish map is grayed out. Your instance limits who may publish: see Share and publish.
What you learned
Section titled “What you learned”- Uploading data: a CSV with latitude and longitude columns becomes points as it uploads.
- Datasets: every file you upload is also a dataset, listed under Data, that you can query with SQL.
- Layers and styling: a layer is a dataset drawn on a map. Color by turns one of its columns into colors, and the legend shows what each color means.
- Publishing: a published map has a link that anyone can open.
Next steps
Section titled “Next steps”- Start from a finished map instead: Templates.
- Query the cities: open SQL in the side menu, type
SELECT name, population FROM world_cities ORDER BY population DESCand click Run query. Query with SQL shows the rest of the workspace. - Build maps from a script or an AI agent: the API quickstart and Connect an AI agent.
7439201b