CFMAP - Generate an earth type google map in ColdFusion

CFmap - earth type Google map

cfmaptypeearth.cfm


<!DOCTYPE html">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cfmap tag - how to generate earth type google map in coldfusion</title>
</head>

<body style="margin:5px 5px 5px 15px;">
<h2 style="color:IndianRed; font-style:italic">
 cfmap tag - how to generate earth
    <br /> type google map in coldfusion
</h2>  
<hr width="525" align="left" color="Pink" />  
<br />

<!--- 
Generate a Google map api key for this domain
http://localhost:8500/
----------------
Use your own google map api key to test this example
 --->

<cfajaximport params="#{googlemapkey='please use your own google map api key here'}#">

<cfmap 
    centeraddress="Nebraska"
    height="425"    
    width="650"
    hideborder="no"
    title="earth type google map (Nebraska)"
    zoomlevel="6"
    zoomcontrol="large3d"
    typecontrol="none"
    type="earth"
    >
</cfmap>

</body>
</html>








More ColdFusion tutorials

CFMAP - How to change google map marker color in ColdFusion

CFmap - Marker color in Google map

cfmapmarkercolor.cfm


<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cfmap tag - how to change marker color in google map in coldfusion</title>
</head>

<body style="margin:5px 5px 5px 15px;">
<h2 style="color:DarkBlue; font-style:italic">
 cfmap tag - how to change marker color
    <br /> in google map in coldfusion
</h2>  
<hr width="525" align="left" color="DarkBlue" />  
<br />

<!--- 
Generate a Google map api key for this domain
http://localhost:8500/
----------------
Use your own google map api key to test this example
 --->

<cfajaximport params="#{googlemapkey='please use your own google map api key here'}#">
<table>
 <tr>
     <td>
            <cfmap 
                centeraddress="Dhaka"
                height="300"    
                width="300"
                hideborder="no"
                title="Marker color: DeepPink"
                markercolor="FF1493"
                >
            </cfmap>
        </td>
     <td>
            <cfmap 
                centeraddress="Mumbai"
                height="300"    
                width="300"
                hideborder="no"
                title="Marker color: Orange"
                markercolor="FFA500"
                >
            </cfmap>
        </td>
    </tr>
</table>

</body>
</html>








More ColdFusion tutorials

Generate a google map with specific latitude and longitude in ColdFusion

cfmap - generate google map with specific latitude and longitude as map center address

cfmaplatitudelongitude.cfm



<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>How to generate google map with specific latitude and longitude as map center address</title>
</head>

<body style="margin:5px 5px 5px 15px;">
<h2 style="color:DarkBlue; font-style:italic">
 How to generate google map with specific
    <br /> latitude and longitude as map center address
</h2>  
<hr width="525" align="left" color="DarkBlue" />  
<br />

<!--- 
Generate a Google map api key for this domain
http://localhost:8500/
----------------
Use your own google map api key to test this example
 --->

<cfajaximport params="#{googlemapkey='please use your own google map api key here'}#">

<cfmap 
    centerlatitude="23.7230556"
    centerlongitude="90.4086111"
    height="350"    
    width="600"
    hideborder="no"
    title="Map center latitude:23.7230556 and longitude:90.4086111 [Dhaka City]"
    >
</cfmap>

</body>
</html>










More ColdFusion tutorials

CFAJAXIMPORT to specify Google map API Key in ColdFusion

CFajaximport - params attribute to specify Google map API Key

cfajaximportparams.cfm


<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>How to use cfajaximport params attribute to specify Google map API Key in coldfusion</title>
</head>

<body style="margin:5px 5px 5px 15px;">
<h2 style="color:DarkBlue; font-style:italic">
 How to use cfajaximport params attribute
    <br /> to specify Google map API Key in coldfusion
</h2>  
<hr width="400" align="left" color="PowderBlue" />  
<br />

<!--- 
Generate a Google map api key for this domain
http://localhost:8500/
----------------
Use your own google map api key to test this example
 --->

<cfajaximport params="#{googlemapkey='please use your own Google map API Key here'}#">

<cfmap 
 centeraddress="Dhaka"
    height="375"    
    width="625"
    hideborder="no"
    title="Dhaka in google map as center address"
    >
</cfmap>

</body>
</html>








More ColdFusion tutorials

ColdFusion CFscript - Invoke a component in script

cfscript - invoke component

artscomponent.cfc


<cfcomponent displayname="ArtsCFC" hint="Art Discover">
 <cffunction name="GetArts" access="remote" returntype="query">
  <cfargument name="ArtistID" type="numeric" required="yes">
  <cfargument name="MaximumPrice" type="numeric" required="yes">

        <cfquery name="ArtDetails" datasource="cfcodeexplorer">
        Select ArtName, Description, Price
        From ART Where ArtistID = #arguments.ArtistID# And Price <= #arguments.MaximumPrice#
        </cfquery>

  <cfreturn ArtDetails>
 </cffunction>
</cfcomponent>


invokecomponentcfscript.cfm


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>How to invoke component in cfscript tag</title>
</head>

<body>
<h2 style="color:DarkBlue; font-style:italic">
 How to invoke component in cfscript tag
</h2>  
<hr width="400" align="left" color="PowderBlue" />  
<br />

<cfscript>
 artsObject = CreateObject("component","artscomponent");
 artistID = 1;
 maximumPrice = 13000;
 arts = artsObject.GetArts(artistID,maximumPrice);
</cfscript>

<cfdump var="#arts#">

</body>
</html>





More ColdFusion tutorials