Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 856

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Requesting and Presenting Information
<cfmap
centeraddress="Hobart, Tasmania, Australia"
name="map1"
type="map"
tip="Hobart, Tasmania, Australia"
zoomControl="small3d"
markerbind="url:mapdata.cfm?cfmapname={cfmapname}&cfmaplatitude={cfmaplatitude}&cfmaplongitu
de={cfmaplongitude}&cfmapaddress={cfmapaddress}"
showmarkerwindow = true>
<cfmapitem name="m1" address="Taj Mahal, Agra, India" tip="Taj Mahal, Agra, India">
<cfmapitem name="m2" latitude="40.46" longitude="117.05" showmarkerwindow=true tip="Great
Wall of China, Bejing">
<cfmapitem name="m3" address="Stonehenge, England" tip="Stonehenge, England"
showmarkerwindow = false>
</cfmap>
Specifying Google map key
The Google Maps API key is required to embed Google Maps in your web pages.
The following URL provides details of how to sign up for the Google Maps API key:
http://code.google.com/apis/maps/signup.html
Currently, ColdFusion supports only embedding of Google map. To generate a map, provide a valid Google map API
key, and specify the latitude and longitude of the location, or the address of the location. The Google map API key can
be specified in the following ways:
• Using the
cfajaximport
<cfajaximport params="#{googlemapkey='Map API Key'}#
• Using Application.cfc as follows:
<cfset this.googlemapkey="Map API Key">
• Using the Settings page in the ColdFusion Administrator. Specify the map API key in the Google Map Key field.
You can also specify the map API key in runtime.cfc.
Styling markers
You can specify the following:
• Custom marker icon: Specify the path to the icon using the
of appropriate size.
• Marker icon color: Use the
icon and not for others.
• Map title: Use the
title
Using the cfprogressbar tag
The
tag has the following characteristics:
cfprogressbar
• Automatically runs the progress bar for a duration that you specify.
• Dynamically loads data using bind expressions
• Lets styling of the progress bar
tag. You specify the map API key in the
attribute. You can specify a color of your preference only for the default
markercolor
attribute.
Last updated 1/20/2012
attribute as follows:
params
"
attribute. Ensure that you specify an image
markericon
851

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents