| goMap - go find yourself |
Version 2.8.0 |
Step 3: Data Source
Step 3: Data Source - XML
You have chosen to use XML as the source for the points within this goMap instance. The structure and handling of the file will be completely automatic, with the file located with the Data folder provided in the installation directory.
-
New XML File
- If you are creating a new data file, provide the name of the file, wiithout
extension in the Text box provided below. Example: UsersOnline2.
- Existing XML
File - If you are using an existing data file, select the file from the
drop-down list provided.
.After setting the XML file, click Next to continue.
Step 3: Data Source - Table/View
You have selected Table/View as the source for the points within this goMap instance. The structure of the goMap source is specific, and are detailed in the ReadMe located with the Data folder provided in the installation directory.
-
New Table
- If you are creating a new table, provide the name of the table. The structure
of the table will be automatically generated and ready to use immediatly.
Example: UsersOnline2 will create a table with that name, and the required
column structure.
- Existing Table/View - If you are using an existing
table or view, select the item from the drop-down list provided. Items
contained within this drop-down are automatically determined as goMap supported
objects based on their column definitions.
.After setting the data source, click
Next to continue.
Step 3: Data Source - Custom Query
You have selected a custom SQL Query as the source for the points within this goMap instance. The structure of the goMap source is specific, and are detailed in the ReadMe located with the Data folder provided in the installation directory. Your query must provide values and appropriate names matching the required columns.
GoMap now supports the use of additional variables within the custom query. The following variables are built-in and are automatically replaced
-
@LATITUDE
- The latitude of the center point of the map
-
@LONGITUDE
- The longitude of the center point of the map
-
@RADIUS
- The radius for the current map
-
@MINLATITUDE
- The minimum latitude showing currently on the map
-
@MAXLATITUDE
- The maximum latitude showing currently on the map
-
@MINLONGITUDE
- The minimum longitude showing currently on the map
-
@MAXLONGITUDE
- The maximum longitude showing currently on the map
-
@ZOOM
- Current zoom level of the map
-
@LATITUDERADIUS
- Latitudinal radius
-
@LONGITUDERADIUS - Longitudinal radius
You may also use some custom variables. The format is
[NAME,SOURCE,DEFAULT]
-
NAME
- Name of the variable
-
SOURCE
- Any of the following: SESSION, VIEWSTATE, FORM, QUERYSTRING, COOKIE, SYSTEM (for tabid or portalid)
-
DEFAULT - Optional. Default value to use if the variable does not
contain a value
The variables will be recomputed every time the map has to fetch data. This includes clicking on the map and moving it around. Using the latitude and longitude ranges, you can show all of the points that would be currently visible to the user. Make sure your query takes advantage of these elements properly.
After setting the data source, click Next to continue.