gis前端设计
2021-11-04 14:02:44 0 举报
gis前端设计
作者其他创作
大纲/内容
jsmart.Feature(4) - 戴
- _feature: arcgis.graphic
+Constructor(option: Object): jsmart.Feature+ clone(): jsmart.Feature+ getAttributes(attrName: string): String | number | Object+ setAttributes(attrObj: Object)- getGeometry_() : arcgis.Geometry- setGeometry_(geometry: arcgis.Geometry)+getRenderer() : jsmart.Renderer+setRenderer(renderder: jsmart.Renderer) : void+getVisible(): Boolean+setVisible(visible: Boolean): void
写在map工具类中还是layer中?
jsmart.StyleOption
jsmart.Modify(3) - 戴
-_modify: arcgis.SketchViewModel+updateFeatures: Array<jsmart.Feature>+layer: jsmart.GraphicsLayer+pointRenderer: jsmart.GeometryRenderer+polygonRenderer: jsmart.GeometryRenderer+polylineRenderer: jsmart.GeometryRenderer
需要封装的功能:LayerStyleMapViewdrawselectoverlay
ol - vectorLayerarcgis - featureLayer
jsmart.GraphicsLayer(2) - 张
+Constructor(option: Object): jsmart.GraphicsLayer+setRenderer(layerRenderer: jsmart.Renderer) : void+getRenderer() : jsmart.Renderer-hasRenderer_() : Boolean+getFeatures(extent: jsmart.Extent) : Promise<Array<jsmart.Feature>>+addFeatures(Array<jsmart.Feature>): void
overlay
mapview
getMap()getView()
style是否需要封装?
jsmart.LabelRenderer(1) - 张
-_labelRenderer: arcgis.LabelRenderer
+Constructor(option: Object): jsmart.LabelRenderer+setLabelFont(labelFont: string):void+getLabelFont(): string+setLabelAlign(align: string): void+getLabelAlign(): string+setLabelText(labelText: string): void+getLabelText(): string+setLabelExpression(labelExpression: string): void+getLabelExpression(): string+setLabelFillColor(color: string): void+getLabelFillColor(): string+getLabelStrokeColor(): string+setLabelStrokeColor(color: string): void
jsmart.BaseLayer(2) - 张
-_layerRenderer: jsmart.Renderer-_layer: arcgis.layers.Layer
+Constructor(option: Object): jsmart.BaseLayer+setVisible(visible:Boolean) : void+getVisible() : Boolean+setRenderer(layerRenderer: jsmart.Renderer) : void+getRenderer() : jsmart.Renderer-hasRenderer_() : Boolean+getFeatures(extent: jsmart.Extent) : Array<jsmart.Feature>+setExtent(extent: jsmart.Extent)+getExtent(): jsmart.Extent+setZIndex(zIndex: number)+getZIndex(): number+setMinScale(minScale: number)+setMaxScale(maxScale: number)+getMinScale(): number+getMaxScale(): number+setOpacity(opacity: number) : void+getOpacity(): number
MapInitManager
uint32_t m_channelsuint32_t m_bitPerSampleuint32_t m_framesuint32_t m_dataLenu_char* m_data
parse(const char *fileName) : booldata() const : u_char*dataLength() const : uint32_tframes() const : uint32_tbitPerSample() const : uint32_tchannels() const : uint32_t
用户是否需要直接操作Style
ol.style
select
jsmart.FeatureLayer(2) - 张
+Constructor(option: Object): Jsmart.FeatureLayer+setRenderer(layerRenderer: jsmart.Renderer) : void+getRenderer() : jsmart.Renderer-hasRenderer_() : Boolean+getFeatures(extent: jsmart.Extent) : Promise<Array<jsmart.Feature>>+addFeatures(Array<jsmart.Feature>): void
需不需要直接操作layer
arcgis.simpleRender
arcgis - mapimageLayer
需要
ol.styleFunction
jsmart.StyleManager
createSimpleRender(styleOption): ol.Style createUniqueValueRenderer(styleOption): ol.styleFuncion
jsmart.Renderer(1) - 戴
_renderer: UniqueValueRenderer | IconRenderer | GeometryRenderer| LabelRenderer
+clone(): jsmart.Renderer+getRender(): UniqueValueRenderer | IconRenderer | GeometryRenderer| LabelRenderer
封装layer
可以实现
setStyle
setVisible
有几种Style?每种style是否能分别对应实现?
jsmart.geoJsonLayer
setVisible()
jsmart.GeoJsonLayer(2) - 张
+Constructor(option: Object): Jsmart.GeoJsonLayer+setRenderer(layerRenderer: jsmart.Renderer) : void+getRenderer() : jsmart.Renderer-hasRenderer_() : Boolean+getFeatures(extent: jsmart.Extent): Promise<Array<jsmart.Feature>>
不需要
UniqueValueRenderer
jsmart.DynamicLayer(2) - 戴
+Constructor(option: Object): jsmart.DynamicLayer-hasRenderer_() : Boolean+getFeatures(extent: jsmart.Extent): Promise<Array<jsmart.Feature>>
arcgis - geojsonLayer
new/destory
ol - vectorLayerarcgis - geojsonLayer
需要操作layer?
arcgis
arcgis - webtileLayer
jsmart.Extent(1) - 张
+ xmin: number = -Infinity+ xmax: number = Infinity+ ymin: number = -Infinity+ ymax: number = Infinity
+Constructor(): jsmart.Extent+ equals(extent: jsmart.Extent): boolean+ contains(extent: jsmart.Extent): boolean+ getIntersection(): jsmart.Extent+ intersects(extent: jsmart.Extent): boolean
arcgis - wmsLayer
jsmart.WMTSLayer(2) - 戴
+Constructor(option: Object): Jsmart.WMTSLayer-hasRenderer_() : Boolean+getFeatures(extent: jsmart.Extent): Promise<Array<jsmart.Feature>>
jsmart.Event(1) - 戴
+CLICK: String = 'click'+DOUBLE_CLICK: String = 'double-click'+MOVE_END: String = 'drag-end'+ZOOM: string = 'zoom'+DRAW_START: string = 'draw-start'+DRAW_END: string = 'draw-end'+SELECT: string = 'select'+MODIFY_START: string = 'modify-start+MODIFY_END: string = 'modify-end'
另外的编码工作:(以下均不能改变类结构)改写QueryTools改写EditFeatures改写SpatialAnalysisTools
jsmart.UniqueValueRenderer(2) - 戴
-_fields: Array-_values: Array-_expressions: Array-_renderers: Array<jsmart.IconRenderer | jsmart.GeometryRenderer | jsmart.Labelrenderer>-_uniqueValueRenderer: arcgis.UniqueValueRenderer
+Constructor(option: Object): jsmart.UniqueValueRenderer+setConditions(condition: Object): void+getConditions(): Object+getRenderers(): Array<jsmart.IconRenderer | jsmart.GeometryRenderer | jsmart.Labelrenderer>+setRenderers(renderers: Array<jsmart.IconRenderer | jsmart.GeometryRenderer | jsmart.Labelrenderer>): void
simpleStyle
jsmart.IconRenderer(1) - 戴
-_iconRenderer: arcgis.IconRenderer
+Constructor(option: Object): jsmart.IconRenderer+setIconSrc(src: string): void+getIconSrc(): string+setImageSize(imgSize: Array<number>): void+getImageSize(): Array<number>+setImageColor(color: string): void+getImageColor(): string
arcgis - GraphicsLayer用于绘制操作时使用的layer
jsmart.Draw(4) - 张
-_draw: arcgis.SketchViewModel+pointRenderer: jsmart.GeometryRenderer+polygonRenderer: jsmart.GeometryRenderer+polylineRenderer: jsmart.GeometryRenderer+geometryType: jsmart.GeometryType
jsmart.MapView
getMap()getView()addLayer()getLayer()removeLayer()fit()
jsmart.View(3) - 张
-_view: arcgis.SceneView
+Constructor(option: Objectspan style=\"font-size: inherit;\
jsmart.Select(4) - 张
-_view: arcgis.SceneView-_status: boolean+canSelectedLayers: Array<jsmart.BaseLayer>-_displayLayer: jsmart.GraphicsLayer+pointRenderer: jsmart.GeometryRenderer+polygonRenderer: jsmart.GeometryRenderer+polylineRenderer: jsmart.GeometryRenderer
openlayers - JS
不封装Syyle
jsmart.Map(2) - 戴
-_map: arcgis.Map
+Constructor(option: Object): jsmart.Map+getLayers(): Array<jsmart.baseLayer>+addLayer(layer: jsmart.BaseLayer): void+findLayerByLegendEntryId(legendEntryId: string): Jsmart.BaseLayer+removeLayers(layers: Array<jsmart.baseLayer>): void+removeAllLayers(): void+destory(): void
jsmart.Overlay(3)
-_location: Array<number>-_view: arcgis.SceneView
+clone(): jsmart.Overlay+close(): void+destroy(): void+addToView(): string
View
map
fit()setZoom()
jsmart.FeatureLayer
setVisible()setStyle()
jsmart.GeometryType(1) - 张
+POINT: string = 'point' +LINESTRING: string = 'polyline' +MULTI_LINESTRING = 'polyline'+POLYGON: string = 'polygon' +MULTI_POINT: string = 'multi_point'+MULTI_POLYGON: string = 'multi_polygon'+CIRCLE: string = 'circle'+RECTANGLE: string = 'rectangle'
setScale
是否可行?
jsmart.WMTSLayer
jsmart.Layer
在arcgis中只能弹出一个框,无法和openlayers一样添加多个
jsmart.WMSLayer(2) - 戴
+Constructor(option: Object): jsmart.WMSLayer-hasRenderer_() : Boolean+getFeatures(extent: jsmart.Extent): Promise<Array<jsmart.Feature>>
ARCGIS-JS
可行
draw
initDraw()
Map
需要封装layer?
arcgis - featureLayer
jsmart.GeometryRenderer(1) - 张
-_geometryType: String-_radius: Number-_fillColor: String-_lineColor: String-_lineWidth: String-_polygonRenderer: arcgis.SimpleRenderer-_pointRenderer: arcgis.SimpleRenderer-_polylineRenderer: arcgis.SimplrRenderer
+Constructor(option: Object): jsmart.GeometryRenderer+setRadius(radius: number): void+getRadius(): number+setFillColor(color: string): void+getFillColor(): string+setLineColor(color: string): void+getLineColor(): string+setLineWidth(lineWidth: string): void+getLineWidth(): string
0 条评论
下一页