Coldfusion 使用cfmap在一个页面中创建多个谷歌地图

Coldfusion 使用cfmap在一个页面中创建多个谷歌地图,coldfusion,Coldfusion,如何使用cfmap在同一页面中呈现多个贴图 当前只有第一个贴图可以渲染 这就是我所拥有的: <cfmap name="gmap01" centerlatitude="#trlat#" centerlongitude="#trlong#" doubleclickzoom="true" overview="true" scrollwheelzoom="true" showscale="true" tip="My Map"

如何使用cfmap在同一页面中呈现多个贴图

当前只有第一个贴图可以渲染

这就是我所拥有的:

<cfmap name="gmap01" 
    centerlatitude="#trlat#" 
    centerlongitude="#trlong#" 
    doubleclickzoom="true" 
    overview="true" 
    scrollwheelzoom="true" 
    showscale="true" 
    tip="My Map" 
    zoomlevel="13"
    typecontrol="basic"
    height="300"
    width ="400"/>

谢谢。

这应该可以回答您的问题,语法很简单:


这应该可以回答您的问题,语法很简单:


要添加多个映射,只需添加另一个具有不同名称属性的cfmap标记。以下代码在我的9.0.1系统上运行良好

<cfmap name="gmap01"
    doubleclickzoom="true"
    overview="true"
    scrollwheelzoom="true"
    showscale="true"
    tip="My Map"
    zoomlevel="13"
    typecontrol="basic"
    height="300"
    width ="400"
    centeraddress="Austin, TX"
/>
<cfmap name="gmap02"
    doubleclickzoom="true"
    overview="true"
    scrollwheelzoom="true"
    showscale="true"
    tip="My Map"
    zoomlevel="13"
    typecontrol="basic"
    height="300"
    centeraddress="Amarillo, TX"
    width ="400"
/>

要添加多个映射,只需添加另一个具有不同名称属性的cfmap标记。以下代码在我的9.0.1系统上运行良好

<cfmap name="gmap01"
    doubleclickzoom="true"
    overview="true"
    scrollwheelzoom="true"
    showscale="true"
    tip="My Map"
    zoomlevel="13"
    typecontrol="basic"
    height="300"
    width ="400"
    centeraddress="Austin, TX"
/>
<cfmap name="gmap02"
    doubleclickzoom="true"
    overview="true"
    scrollwheelzoom="true"
    showscale="true"
    tip="My Map"
    zoomlevel="13"
    typecontrol="basic"
    height="300"
    centeraddress="Amarillo, TX"
    width ="400"
/>