zoukankan      html  css  js  c++  java
  • arcgis api 之view

    mapView导航:

    Zoom:定义视图的缩放级别;
    Center:定义视图的中心点; 
    Scale:定义地图显示的比例级别;
    Extent:定义视图的显示范围;
    Viewpoint
    Camere

    mapView.constraints

    限制loadsscalezoomrotation

    view.constraints={
    minScale: 500000 ,// User cannot zoom out beyond a scale of 1:500,000
    maxScale: 0 ,// User can overzoom tiles
    rotationEnabled: false// Disables map rotation
    };

    限制altitude(camera高度设置)camera tilt

    view.constraints={
    Altitude:{
    Min:500,
    Max:2000000000;
    }
    };
    ViewingMode:”local”   设置三维地图格式不设置的话默认为globe即球体

    ●View. environment

    指定环境可视化方面的属性:

    - background
    - lighting
    - atmosphereEnabled
    - atmosphere
    - starsEnabled   黑色背景星空顶

    View方法:

    goTo(target(导航的位置),options(呈现的效果))      用于导航,从当前位置跳转至另一个位置
    toMap()        screen point转换为 map point
    toScreen()    map point 转换为  screen point
    hitTest()         返回与制定屏幕坐标相交的每个图层的最顶层要素。
    when()      图层的加载
    on()        事件的监听
    Watch()     对属性变化的监听

    view.on()实例:

    View.on(type,modifiersOrHandler,handler?)
    事件: Blur click
    double- -click drag focus hold lmmediate-click key-down key-up layerview- create layerview-destroy mouse -wheel pointer- down pointer-enter pointer-leave pointer-move pointer-up resize

    view.watch()实例:

    View.watch(path,callback)
    var handle = view . watch ("scale",function (newValue, oldvalue, proper tyName, target) {
    console,1og (propertyName +”changed from ”+ oldValue +”to”+ newvalue) ;
    };
  • 相关阅读:
    Django remedy a security issue refer dos attack
    AppScan8.7的两个细节亮点
    redis的使用
    IDEA使用技巧
    记录tips
    Scala实现wordcount
    Scala学习笔记1
    linux系统下访问window本地数据库
    python国内使用豆瓣下载源和linux常用的命令
    hadoop集群开启和停止执行命令
  • 原文地址:https://www.cnblogs.com/1gaoyu/p/15153578.html
Copyright © 2011-2022 走看看