Click2Map's My Database feature allows you to create and manage your own database: you can create all the categories you need and populate them with as many data fields as you need. For more information on this subject, please see: How to Create Data Categories and Data Fields.
In this tutorial, we'll create a new map and import a list of homes for sale in the San Diego area with their description. We'll add specific information on their surface area, their number of bedroom, their selling price, the presence of a swimming pool, a comment, the name of a contact person and their phone number. We'll use a marker template to automatically include all this information in each marker's information window.
Please follow the tutorial How to Create Data Categories and Data Fields to create:
Click on the Add… button to open the New Template dialog box.
Click on the Additional Properties tab and enter the following information (see: The Template dialog box for more information): Sqft: #RealEstate.Sqft
Rooms: #RealEstate.Rooms
Swimming Pool: #RealEstate.SwimmingPool
Price: USD #RealEstate.Price
Comments: #RealEstate.Comments
Contact: #Contact.Name (phone #Contact.Phone)
Click on the OK button to save the marker template.
Please note how the data fields defined at the beginning of this tutorial have been inserted in the “Info” tab: each data field is in fact a variable composed of the name of the data category it belongs to and the name of the data field itself, separated by a dot. Custom variables always start with a # sign when internal Click2Map variables start with a $ sign (see: Click2Map Variables).
Variables can be used in almost all text fields and Html areas of markers and marker templates.
Important: When using variables, the name of data categories and of data fields must be entered exactly how they were written when you created them. Data categories, data fields and the corresponding variable names are case sensitive.
Click2Map's import functionalities not only allow you to import markers (see: How to Import Markers), but also to import data into your database. It is also possible to associate a specific marker template with each marker during the import process.
We'll prepare here a CSV import file that will contain the following columns:
Note: Each “My Database” field is in fact a variable composed of the name of the data category it belongs to and the name of the data field itself, separated by a dot.
Our import file thus contains 13 columns: the first line of the CSV file must contain the name of each column while the subsequent lines contain the actual data corresponding to each marker.
For easier editing of the import file, you can prepare it with a spreadsheet application such as MS Excel, OpenOffice or Google SpreadSheet. When you're done editing your data, simply save a copy of the file in CSV format (remember which separator you select). To download the sample file used in this tutorial, please click here: http://wiki.click2map.com/files/California_Real_Estate_DB.csv (separator: semi-colon)
Use the New > Map command from Click2Map's main menu to open the Map dialog box and enter the following information:
Use the Publish > As a Web Page command from Click2Map's main menu to open the Publish Map dialog box.