Caspio - now you can

Map Mashup Instructions

New in Version 4:

  • Hide map on search
  • No body tag code
  • More zoom options

Requirements:

1. Caspio Bridge DataPage Setup

Configure your DataPage and map settings using the DataPage Wizard in Caspio Bridge.

2. Web Page Setup

You will need access to your web page source to deploy the DataPage and map.

-- You are finished. Your mashup should be fully functional. --

[+] View Additional Customization Options

Display Map on Search Page

To display the map with your search form, insert an HTML Block at the bottom of your DataPage elements in the "Configure Search Fields" section of the DataPage wizard. Make sure no fields from your table appear below the HTML Block (Figure 7). Then copy and paste the following code into the HTML Block:

<div id="mapType" style="display:none">Y</div>
<div id="mapWidth" style="display:none">500</div>
<div id="mapHeight" style="display:none">500</div>
<span id="mapIcon" style="display:none">3</span>
<div id="plotMulti" style="display:none">Y</div>
<div id="zoomLevel" style="display:none">9</div>
<div id="home_position" style="display:none">1600 Pennsylvania Avenue NW Washington, DC 20500</div>

To customize the map settings, refer to the [+] Map Settings Legend.

Map Settings Legend

The following map settings can be customized by replacing the variables below.

mapType Enter G for Google maps
Enter Y for Yahoo! maps
mapWidth Width in pixels of your map
mapHeight Height in pixels of your map
mapIcon Enter preferred icon color as a number 1-10:
Icon 1 = 1   Icon 2 = 2   Icon 3 =3   Icon 4 = 4   Icon 5 = 5
Icon 6 = 6   Icon 7 = 7   Icon 8 = 8   Icon 9 = 9   Icon 10 = 10
plotMulti Enter Y to plot all points during Results Page load.
Enter N if you do not wish to plot all points.
zoomLevel Enter the zoom level as a value 1-16, where 1 is close and 16 is far away:
  • 2 = street-level
  • 9 = city-level
  • 11 = state-level
  • 14 = country-level
home_position Enter an exact address, city, state code, or zip/postal code for the opening position of the map:
  • 1600 Pennsylvania Avenue NW Washington, DC 20500
  • Washington, DC
  • DC
  • 20500
Map it This is the clickable label for users to plot the address on the map. You can change this label to any other text or an HTML image tag.

Map Positioning

By default, the map displays right above your DataPage. If you want to place your map in a different area of your page, place the following code there:

<div id="map"></div>

Map Border and Margin

By default, the map has a gray border and a 5 pixel margin above and below it. To customize these attributes, use the following code instead of the code provided above for "Map Positioning" and customize the style items in red.

<div id="map" style="border: 1px solid #000000; margin: 5px 0 5px 0;"></div>
  • Border format: size type color
  • Margin format: top right bottom left