Maps

Single Point Map

Suppose in one of the wiki pages you are interested to show the location of Irvine on a map:

#simpleMap(33.655016, -117.844766, 15, "Irvine")

Follow the following instructions for inserting this map in your wiki page:

Press the "Insert a macro" button:

map1.jpg

Select "Simple Map" from the list and enter appropriate values for your location:

map2.jpg

By pressing the "Insert Macro" button on this form, a line of code would be added to your wiki page. This line would be converted to map after saving the page and viewing it. Note that zoom level can be a value between 1 and 19.

Multiple Points Map

Sometimes you have a lot of points that you want to display all of them on a single map:

#mapFromExcel("locations.xls", "Sheet1", "A1-C101")

You have two options on CalSWIM. You can either put them on an Excel spreadsheet or retrieve them directly from a registered database:

Map From Data of Attached Excel Spreadsheet

In this case, you must attach an spreadsheet and specify a range containing 3 columns. The first column would be the title of the points. The second and the third columns would be latitude and longitude of points (Check the attachment of this page as an example).

Press the "Insert a macro" button:

map1.jpg

Select "Map with data from Excel" from the list and enter appropriate values for your location:

map3.jpg

By pressing the "Insert Macro" button on this form, a line of code would be added to your wiki page. This line would be converted to map after saving the page and viewing it.

Map From Data of a Registered Database

In this case, you can write a SQL query which returns three columns (the first column should be the title and the second and the third columns should be latitude and longitude of points).

Press the "Insert a macro" button:

map1.jpg

Select "Map with data from Database" from the list and enter appropriate values for your location:

map4.jpg

By pressing the "Insert Macro" button on this form, a line of code would be added to your wiki page. This line would be converted to map after saving the page and viewing it.


Creator: Yasser Ganjisaffar on 2007/12/27 19:11
Copyright © 2008 The Regents of the University of California. All Rights Reserved.
1.8-rc-2.17297