Import map features from a file

You can import map features like lines, shapes, and places to your map from KML files, spreadsheets and other files.

Import map data to a layer

Step 1: Prepare your info

Import a file

Make sure your info is one of these file types:

  • CSV
  • TSV
  • KML
  • KMZ
  • GPX
  • XLSX
  • Google Sheet
  • One or more photos in Google Drive or Google Photos

Unzipped KML and KMZ files can be up to 5 MB.

CSV files and Google Sheet files both support WKT geometry format.

Other files can be up to 40 MB.

Unless the file is a photo, the first row should have titles. To import data properly, make sure you have a column with one of the following:

  • Latitude-longitude information
  • Addresses
  • Place names
  • WKT-formatted vector geometry objects

Do not import files with more than 2,000 rows. You can import up to 100 photos at a time.

CSV or Google Sheets support WKT columns named “WKT.”

Step 2: Import info into the map
  1. On your computer, sign in to My Maps.
  2. Open or create a map.
  3. In the map legend, click Add layer.
  4. Give the new layer a name.
  5. Under the new layer, click Import.
  6. Upload the file or photos that have your info. Then click Select.
    1. If you use WKT objects, click the checkbox for WKT to choose a column to position your placemark.

Edit an existing layer

You can use MyMaps to reimport your layers with Google Sheets and Comma Separated Values (CSVs). This is helpful if you want to keep the styles you’ve made to your data, and still make any updates. 

There are a few different options on how to sync and merge layers with Google Sheets and CSVs.

Replace all items

You can delete all existing map data in a layer and replace it with map features from a file such as a Google Sheet or CSV file. For instance, you can update layer content with the latest weekly earthquake locations from a sheet and continue to style them by magnitude.

  1. In the layer, click the Overflow menu More.
  2. Select Reimport and merge and then Reimport and then Replace all items.
  3. Choose or upload the file containing the data, then click Select.

Tip: If you previously styled map features by a data column, then your style rules will be copied to the replacement data.

Update map data in a layer

You can update existing map data in a layer to match the map features from a different file. For example, you can track people across the world as their location is updated in a sheet, without losing their custom icons, photos and videos.

  1. In the layer, click the Overflow menu More.
  2. Select Reimport and merge and then Reimport and then Update matching items.
  3. Choose or upload the file containing the data, then click Select.
  4. Select the column from “Layer data” and the corresponding column from “Uploaded data” to match the features.
  5. Click Finish.

Tips:

  • If you previously styled map features by a data column, then your style rules will be copied to the replacement data.
  • Any map features in the original layer that don’t match the new file will be deleted.
  • Any map features in the original layer that match the new file will be preserved including photos or custom styles. 
  • Any new map features in the file will be added to your map.
Add more items to an existing layer

You can add new map data to an existing layer using a sheet or a CSV. This adds the map data to your existing layer.

  1. In the layer, click the Overflow menu More.
  2. Select Reimport and merge and then Add more items.
  3. Choose or upload the file containing the data, then click Select.
Merge matching items

You can also merge data sets based on a matching column in your sheet or CSV. For example, if 2 different files share a column, this column can be used to merge the 2 data sets on the map. You can join a “US states” and an “election result” data set together based on state codes.

  1. To import your first data set, in the layer, click Import.
  2. In the layer, click the Overflow menu More.
  3. Select Reimport and merge and then Merge matching items.
  4. Choose or upload the second file containing the matching column, then click Select.
  5. Select the column from “Layer data” and the corresponding column from “Uploaded data” to match the features.
  6. Click Finish.

Learn about importing or modifying info problems

If you can’t import your info correctly:

KML files may not import all their data. The data includes:

  • Info balloons with HTML or JavaScript
  • KML tours
  • Time-based elements
  • Image and screen overlays
  • MultiGeometries
  • 3D models
  • Folders

You may have trouble modifying your WKT column after you import it.

  • WKT columns are geometries on import. They're no longer text-based.
  • To edit them, you can use the standard geometry editing tools. You can’t edit them in the table editor the same way an address column can.
Search
Clear search
Close search
Google apps
Main menu
10594502411128220714
true
Search Help Center
true
true
true
true
true
81645
false
false