外观
lib-map 库参考
原文: https://finproducts.atlassian.net/wiki/spaces/JIDD3/pages/34793816359/FIN+5.3.1+lib-map 中文整理基于 FIN 5.3.1
导读: 在地理地图上可视化数据
以下为 API 参考,保留英文以便对照源码;目录已列出(英文标题便于检索);概述已尽量中译。
目录(导读)
- lib
- meta
- apps
- views
- def
- supertypes
- src
概述(中译)
地图扩展
API 正文(英文)
apps
| map | Visualize data on a geographic map |
views
| map | Display data with a geoCoord on a map |
| mapKpis | View KPIs for each site on the map |
| mapSites | Browse sites on the map |
def
app:map
Visualize data on a geographic map
meta
| def | app:map |
| disKey | ui::map |
| icon | map |
| is | app |
| lib | lib:map |
supertypes
| feature | Feature namespace of definitions formatted as feature:name |
| app | UI application grouping of views |
def
view:map
Display data with a geoCoord on a map
meta
| def | view:map |
| disKey | ui::map |
| icon | view |
| is | view |
| lib | lib:map |
supertypes
| feature | Feature namespace of definitions formatted as feature:name |
| view | Fresco UI view |
src
view: {uiType: "mapExt::MapView"}def
view:mapKpis
View KPIs for each site on the map
meta
| appName | map |
| def | view:mapKpis |
| disKey | ui::kpis |
| icon | view |
| is | view |
| lib | lib:map |
supertypes
| feature | Feature namespace of definitions formatted as feature:name |
| view | Fresco UI view |
src
view: {uiType:"mapExt::MapKpisView"}
sites: {input var defVal:[@nav:site.all] kind:"Ref<site>[]" navCluster navSelAny share}
span: {var input kind:"Span" defVal:Span("today") share}
kpi: {input var kind:"Str" enumExpr:"mapKpiEnum()"}
showAs: {input var kind:"Str" defVal:"bubbleCell" enum:{bubbleCell:{disKey:"ui::bubble",icon:"circle"}, barCell:{disKey:"ui::bar",icon:"chartBar"}, gaugeCell:{disKey:"ui::gauge",icon:"gauge"}}}
showSidebar: {input var defVal:"show" enum:"show,hide" uiInput:"mapExt::ShowSidebarInput" share}
kpiTable: {disKey:"ui::kpis" action:"mapExt::MapKpisView.kpiTable"}
menu: {action:"uiContextMenu"}
data: {expr:"mapKpis({{sites}}, {{span}}, {{kpi}}, {{showAs}})"}def
view:mapSites
Browse sites on the map
meta
| appName | map |
| def | view:mapSites |
| disKey | ui::sites |
| icon | view |
| is | view |
| lib | lib:map |
| order | 100 |
supertypes
| feature | Feature namespace of definitions formatted as feature:name |
| view | Fresco UI view |
src
view: {uiType:"mapExt::MapSitesView"}
sites: {input var defVal:[@nav:site.all] kind:"Ref<site>[]" navCluster navSelAny share}
showSidebar: {input var defVal:"show" enum:"show,hide" uiInput:"mapExt::ShowSidebarInput" share}
menu: {action:"uiContextMenu"}
data: {expr:"mapSites({{sites}})"}