Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Raymond Camden / Raymond Camden (Raymond Camden)
Created: 11/27/2008
Components: AJAX, UI Components
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 / 220777
Priority/Frequency: Major / Unknown
Locale/System: English / Mac 10 All
Vote Count: 0
Problem:
If I use ColdFusion.Map.setCenter, the map resets the zoom. Shouldn't it respect the current zoom level?
Method:
<script langauge="javascript">
function setCenter(){
ColdFusion.Map.setCenter('map1',{latitude:39, longitude:116});
//m = ColdFusion.Map.getMapObject('map1');
//alert(m.getZoom());
}
function setZoomLevel(){
ColdFusion.Map.setZoomLevel('map1',15);
}
</script>
<cfmap
centerlatitude="12.58"
centerlongitude="77.38"
name="map1"
type="map"
hideBorder="true"
collapsible="false"
width="1000"
height="600"
scrollWheelZoom="false"
doubleClickZoom="true"
typeControl="basic"
overview="true"
continuousZoom="true"
showScale="true"
showAllMarkers="true"
showCenterMarker="true"
tip="Bannerghatta Rd, Bangalore"
zoomControl="large3d"
zoomlevel=3
/>
<input type="button" name="btn" onClick="javascript:setCenter()" value="set center">
<input type="button" name="btn1" onClick="javascript:setZoomLevel()" value="set zoom">
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3036866
External Customer Info:
External Company:
External Customer Name: Raymond Camden
External Customer Email: 5FBC41E943BD265C992015D5
External Test Config: 11/27/2008
Attachments:
Comments: