Skip to content

lib-map 库参考 ​

原文: https://finproducts.atlassian.net/wiki/spaces/JIDD3/pages/34793816359/FIN+5.3.1+lib-map 中文整理基于 FIN 5.3.1

导读: 在地理地图上可视化数据

以下为 API 参考,保留英文以便对照源码;目录已列出(英文标题便于检索);概述已尽量中译。


目录(导读) ​


概述(中译) ​

地图扩展


API 正文(英文) ​

apps ​

mapVisualize data on a geographic map

views ​

mapDisplay data with a geoCoord on a map
mapKpisView KPIs for each site on the map
mapSitesBrowse sites on the map


def ​

app:map ​

Visualize data on a geographic map


meta ​

defapp:map
disKeyui::map
iconmap
isapp
liblib:map

supertypes ​

featureFeature namespace of definitions formatted as feature:name
appUI application grouping of views


def ​

view:map ​

Display data with a geoCoord on a map


meta ​

defview:map
disKeyui::map
iconview
isview
liblib:map

supertypes ​

featureFeature namespace of definitions formatted as feature:name
viewFresco UI view

src ​

view: {uiType: "mapExt::MapView"}


def ​

view:mapKpis ​

View KPIs for each site on the map


meta ​

appNamemap
defview:mapKpis
disKeyui::kpis
iconview
isview
liblib:map

supertypes ​

featureFeature namespace of definitions formatted as feature:name
viewFresco 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 ​

appNamemap
defview:mapSites
disKeyui::sites
iconview
isview
liblib:map
order100

supertypes ​

featureFeature namespace of definitions formatted as feature:name
viewFresco 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}})"}