openscales2.2 的初始缩放等级
在openscales1.2版本中可以直接定义缩放等级有ZOOM属性,而在2.2版本中没有该属性。
我的wms图层定义的级别为:
<os:WMSC name="bound" url="http://localhost:8085/cgi-bin/mapserv.exe?MAP=D:/tmp/GisDemo/GisDemo/Content/map/OpenscalesDemo.map" layers="bound,road" format="image/jpeg" transparent ="false" resolutions="0.125,0.0625,0.03125,0.015625,0.0078125,0.00390625,0.001953125,0.00098765125,0.000598820625,0.0002994103125,0.00014970515625,0.000074852578125,0.0000374262890625,0.00001871314453125,0.000009356572265625,0.0000046782861328125,0.00000233914306640625" />
在map的加载事件中如下代码:
map = fxMap.map; map.zoomBy(0.0312);
各位如果还有简单的做法请告知。