zoukankan      html  css  js  c++  java
  • 【一】我眼中的FeatureLayer

    1.来源


    • MapService 或者 FeatureService(10.0后)中的一个图层
    • Tabel
    • 动态空间

    2.使用


    •  符号化  

      首先看下FLyr的继承关系:FeatureLayer Inheritance GraphicsLayer Inheritance Layer Inheritance mx.core.UIComponent ,这也就注定FLyr的渲染方式是在前台。符号的默认样式是在Server定义,当然作为GraphicsLayer的子类也是可以在前台设置symbol或者render。

    • 事件

      当在设置了infowindowrender时,FLyr的点击事件当弹出infowindow。graphicAdd事件可以灵活的添加graphic相关的事件,譬如tooltips,mouseover,mouseout。

    • 搜索方式

      demand:随着extent,time,definition的变化而变化;selection:只有选择的要素才会从服务器搜素并存在内存中;snapshot:搜索所有的要素,在定义了definitionExpression的时候,只显示定义内的要素

    • 编辑

      FeatureService中图层,开启编辑编辑和附件功能。数据必须来源与ArcSDE,不需要版本化(10.1)。可以用封装的editor工具,也可以用暴露的applyEdit方法。当只想编辑属性时,可以只采用attributeinspector组件。另外,编辑也可设置权限。

    3.后记


      FLyr从AGS10.0出世的确提供了不少便利,采用前端渲染的方式,dynamiclayer的出现则弥补了缺乏动态后端渲染的缺陷(当然DynLyr的作用不仅如此,以后再续)。

  • 相关阅读:
    双11专刊|云原生数据仓库AnalyticDB支撑双11,大幅提升分析实时性和用户体验
    LeetCode_Binary Tree Inorder Traversal
    LeetCode_4Sum
    LeetCode_Add Binary
    LeetCode_Add Two Numbers
    LeetCode_3Sum Closest
    Building CEGUI with Ogre 1.8.1
    LeetCode_3Sum
    LeetCode_Climbing Stairs
    LeetCode_Binary Tree Level Order Traversal
  • 原文地址:https://www.cnblogs.com/reachers/p/4827244.html
Copyright © 2011-2022 走看看