zoukankan      html  css  js  c++  java
  • 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);

    各位如果还有简单的做法请告知。

  • 相关阅读:
    HTTP 缓存图解
    http协议构成整理
    HTTP2.0
    Event Loop
    斐波那契数列
    归并排序
    快速排序
    史上最全前端资源
    Js 将 Date 转化为指定格式的String
    vue-cli webpack全局引入jquery
  • 原文地址:https://www.cnblogs.com/oldhorse/p/2994948.html
Copyright © 2011-2022 走看看