Table of Contents

How to Import Markers

This tutorial will guide you through all the steps required to prepare data and to import it into a Click2Map map. Importing new markers and updating them when necessary is a simple process that however requires some attention.

We'll base this tutorial on a simple example: a list of homes and condos in the San Diego area that we'd like to locate on a map to provide potential buyers with an easy geographical overview and a simple description of each property. We'd of course like to provide them with a link to our website and our contact e-mail address in case they need additional information.

CSV Files

Click2Map is able to import data from external files, provided they are in a compatible format. The main import format is the CSV format: CSV is the acronym for Comma Separated Values which is a standard text file format used to exchange data between different applications. CSV files are easy to edit in standard spreadsheet applications such as MS Excel, OpenOffice or Google Spreadsheet.

CSV files are text files that can be opened in almost any text editor such as Notepad, SimpleText… They however differ from standard text files in that they are used to store organized data and have a specific structure:

The Click2Map CSV Structure

The first line of a Click2Map CSV file contains the following elements:

Name,Title,Latitude,Longitude,Description,Address,Street,City,State,Zip,Country, Icon_uri,IconSizeW,IconSizeH,Url_text,Url,Email_text,Email,Group

This first line is not as abstract as it may seem: it is a list of all the information that can be associated with each marker on a map. The order in which elements are organized is not important; you should just make sure that the same order used in the first line is also used for all markers. The first line describing the structure of you data (Name, Title, etc.) is not necessary if you use the structure described above: Click2Map will automatically associate matching columns. If this is not the case, you'll have the possiblity to manually make associations during the import process.

Note: All elements are not mandatory: some can be ignored, in which case Click2Map will consider them to be empty or fill them with default values.

Step 1: Preparing the CSV File

The first step will be to organize the property information we already possess and see how it would fit in the Click2Map CSV structure. The following elements are available for each home:

Step 2: Creating a Basic CSV File

Now that we know how to organize our data, it's time to create the file that will contain it. It is of course possible to create a blank text file and start entering data in it. Spreadsheet applications make editing data much easier: we'll then use MS Excel or any other spreadsheet program to create a new file and enter the information about our properties.

  1. Start your spreadsheet application, create a new blank file and save it in your application's standard file format.
  2. On the first line, enter the following in the first five horizontal cells: Type, Reference, Address, Title, DescriptionCSV Titles
    • Type: The Type column will be used to sort properties according to their nature: condo, townhouse, single-family home, etc.
    • Reference: The Reference column corresponds to the Name field and must contain unique names or IDs. We'll use imaginary references here.
    • Address: The Address column will be used to store the full postal address of each property.
    • Title: We'll use the Title column to briefly describe each property.
    • Description: The Description column will be used to store each property's full descriptionCSV Data
  3. Save the file in your application's standard file format.

To retrieve the content of the sample file in CSV format (semi-colon delimited), click here.

Note: At this stage, you already have enough information in your CSV file to perform a first import. If you wish to start importing your data immediately, you can jump to Step 4: Saving the CSV file.

If you would like to create richer markers, with additional information, Internet and E-mail links, please read on.

Step 3: Adding More Information

The five columns created in the preceding sections of this tutorial contain the main elements necessary to locate and describe markers on a map. Click2Map allows you to add more optional information to offer your visitors ways to visit your website or contact you via e-mail. To do so, we simply need to add a few columns and enter some more information:

  1. If you had closed it, reopen the spreadsheet file you created in Step 2. To retrieve the content of the sample file in CSV format (semi-colon delimited), click here.
  2. On the first line, enter the following in the next four blank horizontal cells: Url_text, Url, Email_text, Email.Internet Links
    • Url_text: In the Url_text column, enter the text that should be used as the visible hyperlink text: when your visitors click on this text, they'll be directed to the Internet address specified in the Url column.
    • Url: In the Url column, enter the full Internet address to which your visitors should be directed when they click on the hyperlink defined in the Url_text column.
    • Email_text: In the Email_text column, enter the text that should be used as the visible e-mail hyperlink text: when your visitors click on this text, a new message will be created in their e-mail client. The To: field will contain the e-mail address specified in the Email column.
    • Email: In the Email column, enter the e-mail address to which your visitors' messages should be sent when they click on the hyperlink defined in the Email_text column.Internet Links
  3. Save the file in your application's standard file format.

To retrieve the content of the sample file in CSV format (semi-colon delimited), click here.

Step 4: Saving the CSV File

For easier editing, we've chosen to prepare our data in a spreadsheet application like MS Excel, OpenOffice or Google Spreadsheet using our application's default file format. To be able to import our data, we need to save it in a format that Click2Map understands: the CSV format.

  1. To start exporting your data, use your spreadsheet application's File > Save as… or Export command and select the CSV (*.csv) file format as the target format. Please note the type of separator (comma, semicolon or tab) used by your application during the process: this information will be necessary when you import the file in Click2Map.
  2. Follow the steps described in the following section.

Step 5: Importing Markers in Click2Map

CSV files include marker, group and subgroup information, but no map information: you should always select or create the correct target map in the Map Explorer before importing markers from a file.

Map Selection

When the target map is selected, use the Tools > Import… command from the main menu and follow the Import Wizard steps.

Final Check

Marker Properties

The CSV file created in this tutorial includes each property's complete street address. The process of converting a street address into the corresponding geographical coordinates is called geocoding. During the import process, the list of all the addresses that couldn't be geocoded is displayed to allow you to modify each address. Most of the time, addresses can't be geocoded because they contain too much information: simplify these addresses and try again.

You can alternatively left-click on a marker and drag it in any direction to fine tune its positioning or move it to the correct location in case of a failed geocoding.