Import map features from a file - Computer (2024)

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 Import map features from a file - Computer (1).
  2. Select Reimport and mergeImport map features from a file - Computer (2)Reimport Import map features from a file - Computer (3)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 Import map features from a file - Computer (4).
  2. Select Reimport and mergeImport map features from a file - Computer (5)Reimport Import map features from a file - Computer (6)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 Import map features from a file - Computer (7).
  2. Select Reimport and mergeImport map features from a file - Computer (8)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 Import map features from a file - Computer (9).
  3. Select Reimport and mergeImport map features from a file - Computer (10) 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:

  • Check if the file is in the correct format.
  • Allow https://mymaps.google.com/ to open your Drive. Learn how to allow or block content settings for certain sites in Chrome.
  • Make sure your column with WKT data is properly labeled as “WKT” only.

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.
Import map features from a file - Computer (2024)

FAQs

Import map features from a file - Computer? ›

How Import Maps Work. An import map is specified through the <script type="importmap"> tag in an HTML document. This script tag must be placed before the first <script type="module"> tag in the document (preferably in the <head> ) so that it is parsed before module resolution is carried out.

How do I import a map? ›

How Import Maps Work. An import map is specified through the <script type="importmap"> tag in an HTML document. This script tag must be placed before the first <script type="module"> tag in the document (preferably in the <head> ) so that it is parsed before module resolution is carried out.

How do I import a Google map into Excel? ›

Go to Google My Maps and open the specific map you want to export. From the menu, choose “Export to KML/KMZ” or “Export to CSV” to download the data in a compatible format. Once downloaded, you can import the exported file into Excel.

Can I import a GPX file to Google Maps? ›

The simplest way to open a GPX file is by uploading it to the website version of Google Maps: Step 1: Sign in to “Google Maps” using your Google account. Step 2: Go to the “Menu” represented as three linesand select”Saved”. Step 3: Click on “Maps” > “Open My Maps” or directly click on the “Create map” button.

What is the type of import map? ›

An Import Map is written in the JSON format syntax. You can define an Import Map in any HTML document by using the script tag and with the type importmap . And you can then use the keys as names for your imports in your scripts.

How do I import data into my 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.

How do I embed a map into Excel? ›

Now it's time to create a map chart, so select any cell within the data range, then go to the Insert tab > Charts > Maps > Filled Map. If the preview looks good, then press OK. Depending on your data, Excel will insert either a value or category map.

How to extract a Google map? ›

Download map info
  1. On your computer, sign in to My Maps.
  2. Open a map.
  3. In the left panel, click Menu. Export to KML/KMZ.
  4. Follow the on-screen instructions.

How do I convert a KML file to Google Maps? ›

Import KML map data into Google Earth
  1. On your Android phone or tablet, open the Google Earth app .
  2. Tap Menu Projects .
  3. At the top, tap Open. To add a file directly from your device, tap Import KML File. ...
  4. Tap the file you want to add.
  5. To return to the map and open the file, tap Back .

Can Maps me use a GPX file? ›

For example, drawing a detailed route between 2 cities would be both very time-consuming and difficult, or drawing the borders for a country or state. Therefore, Mapme lets you add to your map drawings of lines and shapes by importing GPX or KML files.

Where to put import map? ›

This import map is inlined in the <head> of your application layout using <%= javascript_importmap_tags %> , which will setup the JSON configuration inside a <script type="importmap"> tag. Then the application entrypoint is imported via <script type="module">import "application"</script> .

Which browsers support import maps? ›

Import maps
  • Chrome. 4 - 73 supported. 74 - 88. ...
  • Edge * 12 - 18 supported. 79 - 88. ...
  • Safari. 3.1 - 16.3 supported. 16.4 - 17.4 Supported. ...
  • Firefox. 2 - 101 supported. 102 - 107. ...
  • Opera. 10 - 60 supported. 62 - 75. ...
  • IE. 6 - 10 supported. 11 supported.
  • Chrome for Android. 124 Supported.
  • Safari on iOS * 3.2 - 16.3 supported. 16.4 - 17.4 Supported.

What file type are maps? ›

There are two principle types of file format associated with publishing maps: vector and raster or bitmap.

How do you import a map into Minecraft? ›

Alternate Instructions
  1. Download the world file (usually in .zip or .rar ) format. ...
  2. Extract to a new folder (WORLD)
  3. Find the .minecraft or com.mojang folder.
  4. Look for the saves or minecraftWorlds folder.
  5. Copy-paste the (WORLD) to that folder.
  6. Open up Minecraft and find it in your selection of saved worlds.

How do I download a map file? ›

Step 1: Download a map to use offline
  1. On your Android phone or tablet, open the Google Maps app .
  2. Make sure you're connected to the internet and signed in to Google Maps.
  3. Search for a place, like San Francisco .
  4. At the bottom, tap the name or address of the place tap More Download offline map.

How do I import a map into Google Earth? ›

On your computer, open Google Earth. Click the New Project button. To add a file directly to your computer, select Import KML File. To add a file from your Google Drive or a shared file, select Import KML file from Drive.

How do I add a custom map to Google? ›

Start by heading to maps.google.com. Click on the menu icon on the top left hand side of the screen and select “Your Places.” (The menu icon is just to the left of the search bar on the top left hand side of your screen.) Select the maps tab. Navigate to the very bottom of that window and select “Create a Map.”

Top Articles
Latest Posts
Article information

Author: The Hon. Margery Christiansen

Last Updated:

Views: 5517

Rating: 5 / 5 (70 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: The Hon. Margery Christiansen

Birthday: 2000-07-07

Address: 5050 Breitenberg Knoll, New Robert, MI 45409

Phone: +2556892639372

Job: Investor Mining Engineer

Hobby: Sketching, Cosplaying, Glassblowing, Genealogy, Crocheting, Archery, Skateboarding

Introduction: My name is The Hon. Margery Christiansen, I am a bright, adorable, precious, inexpensive, gorgeous, comfortable, happy person who loves writing and wants to share my knowledge and understanding with you.