WO2020147300A1 - 一种基于动态图例的地图交互方法 - Google Patents

一种基于动态图例的地图交互方法 Download PDF

Info

Publication number
WO2020147300A1
WO2020147300A1 PCT/CN2019/098764 CN2019098764W WO2020147300A1 WO 2020147300 A1 WO2020147300 A1 WO 2020147300A1 CN 2019098764 W CN2019098764 W CN 2019098764W WO 2020147300 A1 WO2020147300 A1 WO 2020147300A1
Authority
WO
WIPO (PCT)
Prior art keywords
map
legend
rendering
layer
displayed
Prior art date
Application number
PCT/CN2019/098764
Other languages
English (en)
French (fr)
Inventor
王瑜慧
王旭
柳孟成
史鑫明
Original Assignee
紫光云数科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 紫光云数科技有限公司 filed Critical 紫光云数科技有限公司
Publication of WO2020147300A1 publication Critical patent/WO2020147300A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]

Definitions

  • the invention relates to the technical field of map legends, in particular to a map interaction method based on dynamic legends.
  • the map legend is a symbol that represents geographic elements on the map. It is an explanation of the content and indicators represented by various symbols and colors on the map. The map legend must be absolutely consistent with the map layer. The map legend helps users use the map more conveniently and understand the map content.
  • the map legends generated by the above methods are static, and the current map rendering methods are often very complicated. In many cases, different rendering methods need to be used according to the zoom level of the map.
  • the current map legend generation methods cannot meet the needs of dynamic map rendering. .
  • the control of whether the map elements are displayed can only be controlled to the map layer level and cannot be further deepened; for example, there is currently a layer containing two types of enterprises, energy and environmental protection.
  • the current layer control method can only be displayed at the same time At the same time, it is hidden, and it is impossible to control the display of map elements according to categories; the current map legends are static and can only be used for viewing and cannot interact with the map.
  • the technical problem to be solved by the present invention is to provide a map interaction method based on a dynamic legend, which adopts a method of dynamically generating a map legend. According to the change of the map rendering mode, the map legend will also change accordingly.
  • the generated map legend It is a form of a triggerable button. By clicking on different types of legends, you can interact with the map, and use the legends to finely control the display of map elements.
  • the present invention provides a map interaction method based on dynamic legends, which includes the following steps:
  • the layer is a vector layer.
  • step (1) during the process of loading a map layer, all geographic elements of the layer are saved in a list.
  • the map rendering configuration file is a json file storing layer styles, including attribute fields for element classification under different display levels of the map and rendering styles of each category element.
  • the rendering styles are divided into three categories: point, line, and surface, where points include style, color, size, and transparency; lines include line type, color, line width, and transparency; surfaces include fill colors, Fill transparency and border style.
  • the map rendering configuration file is saved at different levels in a json format.
  • the map legend is refreshed in real time according to the change of the rendering mode, which satisfies the legend matching under diversified map rendering changes;
  • the map legend is not static but interactive, and can be refined classification control by clicking the legend Whether the map features are displayed or not.
  • Fig. 1 is a schematic diagram of the method of the present invention.
  • a map interaction method based on dynamic legends includes the following steps:
  • the present invention adopts a method of dynamically generating a map legend. According to the change of the map rendering mode, the map legend will also change accordingly.
  • the generated map legend is in the form of a triggerable button. By clicking on different types of legends, it can be connected to the map. Interactively control the display of map elements through legends.
  • Map rendering configuration file which saves the rendering methods of different types of elements at different levels in json format, including text styles.
  • the rendering of the map and the generation of the map legend are based on this configuration file.
  • the configuration file will be read, and the current matching rendering style can be obtained by querying the current map display level. Then trigger the map rendering event and the legend generation event respectively.
  • the legend is generated directly through the map rendering configuration file. This method ensures that the map legend is refreshed and dynamically generated in real time according to the map rendering.
  • the map legend can finely control whether the elements in the layer are displayed or not.
  • the icon for dynamically generating the map legend is a button that can trigger an event. By clicking the legend icon, you can filter out the element categories that need to be displayed. Filter out the elements that need to be displayed from the list of all geographic elements, and reload the layer to complete the fine control of whether the layer elements are displayed by the legend, and realize the interaction between the dynamic legend and the map.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)
  • Instructional Devices (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种基于动态图例的地图交互方法,包括如下步骤:(1)加载地图图层;(2)加载地图渲染配置文件;(3)获取当前地图的显示级别,通过渲染配置文件查询得到当前级别所匹配的渲染样式,读取地图渲染配置文件,分别触发地图渲染事件和图例生成事件;(4)点击图例图标,根据要素图例是否选中,筛选出需要显示的要素类别,从保存所有地理要素的列表中筛选出需要显示的要素,生成显示要素列表,对图层进行重新加载,完成图例对图层要素显示与否的精细化控制。基于动态图例的地图交互方法采用的是动态生成地图图例的方式,生成的地图图例是可触发的按钮形式,通过点击不同类型的图例,可以实现与地图进行交互,通过图例精细化控制地图要素的显示与否。

Description

一种基于动态图例的地图交互方法 技术领域
本发明涉及地图图例技术领域,尤其是一种基于动态图例的地图交互方法。
背景技术
地图图例是地图上表示地理要素的符号,是地图上各种符号和颜色所代表内容与指标的说明,地图图例必须与地图图层保持绝对一致性。地图图例有助于用户更方便的使用地图、理解地图内容。
现有技术中,一些商业或者开源的GIS往往都是静态的根据地图图层渲染方式生成地图图例,一旦生成图例之后就不会改变了,地理要素的显示与否只能通过控制整个地图图层显示与否的方式来控制。
上述方法所生成的地图图例都是静态的,而目前地图的渲染方式往往十分复杂,很多情况下需要根据地图级别的缩放采用不同的渲染方式,目前的地图图例生成方法无法满足地图动态渲染的需求。目前控制地图要素是否显示只能控制到地图图层层面,无法再继续深入;例如目前有一个图层里面有能源和环保两种类型的企业,目前图层控制的方式只能做到同时显示或者同时隐藏,无法做到按照类别来控制地图要素的显示与否;目前的地图图例都是静态的,只能用来查看,无法与地图进行交互。
发明内容
本发明所要解决的技术问题在于,提供一种基于动态图例的地图交互方法,采用的是动态生成地图图例的方式,根据地图渲染方式的变化,地图图例也会随之发生变化,生成的地图图例是可触发的按钮形式,通过点击不同类型的图例,可以实现与地图进行交互,通过图例精细化控制地图要素的显示与否。
为解决上述技术问题,本发明提供一种基于动态图例的地图交互方法,包括如下步骤:
(1)加载地图图层;
(2)加载地图渲染配置文件;
(3)获取当前地图的显示级别,通过地图渲染配置文件查询得到当前级别所匹配的渲染样式,读取地图渲染配置文件,分别触发地图渲染事件和图例生成事件;根据读取到的渲染样式,分别渲染地图以及生成地图图例,从而确保地图与图例的一致性;
(4)点击图例图标,根据要素图例是否选中,筛选出需要显示的要素类别,从保 存所有地理要素的列表中筛选出需要显示的要素,生成显示要素列表,对图层进行重新加载,完成图例对图层要素显示与否的精细化控制。
优选的,步骤(1)中,图层为矢量图层。
优选的,步骤(1)中,加载地图图层的过程中,将该图层所有的地理要素保存在一个列表中。
优选的,步骤(2)中,地图渲染配置文件为存储图层样式的一个json文件,包括地图不同显示级别下用于进行要素分类的属性字段以及各类别要素的渲染样式。
优选的,步骤(2)中,渲染样式分为点、线、面三大类,其中点包括样式、颜色、大小和透明度;线包括线型、颜色、线宽和透明度;面包括填充颜色、填充透明度和边框样式。
优选的,步骤(3)中,地图渲染配置文件以json的格式保存在了不同级别下。
本发明的有益效果为:地图图例根据渲染方式的变化实时刷新的,满足多样化的地图渲染变化下的图例匹配;地图图例不是静态的,是可交互的,可以通过点击图例,精细化分类控制地图要素的显示与否。
附图说明
图1为本发明的方法流程示意图。
具体实施方式
如图1所示,一种基于动态图例的地图交互方法,包括如下步骤:
(1)加载地图图层;
(2)加载地图渲染配置文件;
(3)获取当前地图的显示级别,通过地图渲染配置文件查询得到当前级别所匹配的渲染样式,读取地图渲染配置文件,分别触发地图渲染事件和图例生成事件;根据读取到的渲染样式,分别渲染地图以及生成地图图例,从而确保地图与图例的一致性;
(4)点击图例图标,根据要素图例是否选中,筛选出需要显示的要素类别,从保存所有地理要素的列表中筛选出需要显示的要素,生成显示要素列表,对图层进行重新加载,完成图例对图层要素显示与否的精细化控制。
本发明采用的是动态生成地图图例的方式,根据地图渲染方式的变化,地图图例也会随之发生变化,生成的地图图例是可触发的按钮形式,通过点击不同类型的图例,可以实现与地图进行交互,通过图例精细化控制地图要素的显示与否。
地图渲染配置文件,该文件以json的格式保存了不同级别下,不同类型的要素的渲染方式,包括文字样式等。地图的渲染以及地图图例的生成都是该配置文件为基础。地图图层的全新加载或者地图缩放级别发生变化的情况下,都会读取该配置文件,通过当前地图的显示级别,查询得到当前匹配的渲染样式。然后分别触发地图渲染事件,以及图例生成事件,图例是直接通过地图渲染配置文件来生成,这种方式确保了地图图例是根据地图渲染实时刷新、动态生成。
本发明中,地图图例是可以精细化控制图层中的要素显示与否。在图层加载初始化的过程中,会将该图层所有的地理要素保存到一个列表中。动态生成地图图例的图标,是可以触发事件的按钮,通过点击图例图标,筛选出需要显示的要素类别。从保存所有地理要素的列表中筛选出需要显示的要素,对图层进行重新加载,即可完成图例对图层要素显示与否的精细化控制,实现动态图例与地图的交互。

Claims (6)

  1. 一种基于动态图例的地图交互方法,其特征在于,包括如下步骤:
    (1)加载地图图层;
    (2)加载地图渲染配置文件;
    (3)获取当前地图的显示级别,通过地图渲染配置文件查询得到当前级别所匹配的渲染样式,读取地图渲染配置文件,分别触发地图渲染事件和图例生成事件;根据读取到的渲染样式,分别渲染地图以及生成地图图例;
    (4)点击图例图标,根据要素图例是否选中,筛选出需要显示的要素类别,从保存所有地理要素的列表中筛选出需要显示的要素,生成显示要素列表,对图层进行重新加载,完成图例对图层要素显示与否的精细化控制。
  2. 如权利要求1所述的基于动态图例的地图交互方法,其特征在于,步骤(1)中,图层为矢量图层。
  3. 如权利要求1所述的基于动态图例的地图交互方法,其特征在于,步骤(1)中,加载地图图层的过程中,将该图层所有的地理要素保存在一个列表中。
  4. 如权利要求1所述的基于动态图例的地图交互方法,其特征在于,步骤(2)中,地图渲染配置文件为存储图层样式的一个json文件,包括地图不同显示级别下用于进行要素分类的属性字段以及各类别要素的渲染样式。
  5. 如权利要求4所述的基于动态图例的地图交互方法,其特征在于,步骤(2)中,渲染样式分为点、线、面三大类,其中点包括样式、颜色、大小和透明度;线包括线型、颜色、线宽和透明度;面包括填充颜色、填充透明度和边框样式。
  6. 如权利要求1所述的基于动态图例的地图交互方法,其特征在于,步骤(3)中,地图渲染配置文件以json的格式保存在了不同级别下。
PCT/CN2019/098764 2019-01-16 2019-08-01 一种基于动态图例的地图交互方法 WO2020147300A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910037938.3 2019-01-16
CN201910037938.3A CN109408612A (zh) 2019-01-16 2019-01-16 一种基于动态图例的地图交互方法

Publications (1)

Publication Number Publication Date
WO2020147300A1 true WO2020147300A1 (zh) 2020-07-23

Family

ID=65462396

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/098764 WO2020147300A1 (zh) 2019-01-16 2019-08-01 一种基于动态图例的地图交互方法

Country Status (2)

Country Link
CN (1) CN109408612A (zh)
WO (1) WO2020147300A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115437613A (zh) * 2022-11-07 2022-12-06 山东省地图院 在线地图制作的动态图例生成方法和装置、设备和介质

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408612A (zh) * 2019-01-16 2019-03-01 紫光云数科技有限公司 一种基于动态图例的地图交互方法
CN110032610A (zh) * 2019-03-12 2019-07-19 紫光云数科技有限公司 一种大规模矢量数据展示方法及系统
CN110515612A (zh) * 2019-08-22 2019-11-29 象辑知源(武汉)科技有限公司 基于Cartopy的后台绘图快速开发库
CN113538208B (zh) * 2020-04-20 2024-09-17 华为技术有限公司 图片加载方法及相关装置
CN112256255B (zh) * 2020-09-27 2024-07-26 中孚安全技术有限公司 一种电子地图图层动态配置展示方法及系统
CN112632310A (zh) * 2020-12-29 2021-04-09 苏州物图科技有限公司 一种室内停车场高精度地图构建方法
CN113486094A (zh) * 2021-05-26 2021-10-08 智慧泉城智能科技有限公司 电子地图图例及内容动态配置展示方法及系统
CN114385168A (zh) * 2022-01-14 2022-04-22 中国联合网络通信集团有限公司 可视化地图生成方法、装置、服务器及系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102419705A (zh) * 2011-09-30 2012-04-18 广州杰赛科技股份有限公司 Web GIS客户端控件生成与管理方法及装置
CN103942338A (zh) * 2014-05-08 2014-07-23 百度在线网络技术(北京)有限公司 地图绘制方法、服务器及终端
CN105069118A (zh) * 2015-08-11 2015-11-18 北京思特奇信息技术股份有限公司 一种基于gis配置的应用场景管理方法及系统
US20170286449A1 (en) * 2016-04-01 2017-10-05 US-ANALYTICS Solutions Group, LLC System for Connecting Computer Dashboards with Geographic Information Systems
CN109408612A (zh) * 2019-01-16 2019-03-01 紫光云数科技有限公司 一种基于动态图例的地图交互方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102419705A (zh) * 2011-09-30 2012-04-18 广州杰赛科技股份有限公司 Web GIS客户端控件生成与管理方法及装置
CN103942338A (zh) * 2014-05-08 2014-07-23 百度在线网络技术(北京)有限公司 地图绘制方法、服务器及终端
CN105069118A (zh) * 2015-08-11 2015-11-18 北京思特奇信息技术股份有限公司 一种基于gis配置的应用场景管理方法及系统
US20170286449A1 (en) * 2016-04-01 2017-10-05 US-ANALYTICS Solutions Group, LLC System for Connecting Computer Dashboards with Geographic Information Systems
CN109408612A (zh) * 2019-01-16 2019-03-01 紫光云数科技有限公司 一种基于动态图例的地图交互方法

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
A FANLU: "Filtered Display of ArcGIS Layers and Features", 7 September 2013 (2013-09-07), pages 1 - 4, XP055718559, Retrieved from the Internet <URL:https://www.cnblogs.com/luxiaoxun/p/3307466.html> *
FU, ZHONGLIANG: "Passage; ArcObjects Advanced Development Guide", ARCOBJECTS SECONDARY DEVELOPMENT TUTORIAL, 31 March 2008 (2008-03-31), pages 261, XP009521967, ISBN: 978-7-5030-1784-1 *
WANG, HAILONG: "Research on Cartographic Visualization for Statistical Data", SCIENCE OF SURVEYING AND MAPPING, vol. 32, no. 06, 15 June 2008 (2008-06-15), pages 66 - 69, XP009521963, ISSN: 1009-2307 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115437613A (zh) * 2022-11-07 2022-12-06 山东省地图院 在线地图制作的动态图例生成方法和装置、设备和介质
CN115437613B (zh) * 2022-11-07 2023-01-24 山东省地图院 在线地图制作的动态图例生成方法和装置、设备和介质

Also Published As

Publication number Publication date
CN109408612A (zh) 2019-03-01

Similar Documents

Publication Publication Date Title
WO2020147300A1 (zh) 一种基于动态图例的地图交互方法
US20240089335A1 (en) User Interface Modification and Usage Tracking
US5611031A (en) Graphical user interface for modifying object characteristics using coupon objects
KR101213809B1 (ko) 전자 문서 스타일 매트릭스
CN106648337B (zh) 显示展示列表中内容的方法和装置、电子设备
US8572501B2 (en) Rendering graphical objects based on context
JPH06301505A (ja) コンピュータ制御ディスプレイ・システム
US10664556B2 (en) Adaptable user interface layout
WO2020001234A1 (zh) 文件夹图标显示方法、系统、可读存储介质及终端
CN108228287A (zh) 基于qt的用户界面控件的生成方法及装置
US20140331179A1 (en) Automated Presentation of Visualized Data
US11922543B2 (en) Device and method for coloring sketch image with color pointer
WO2019242543A1 (zh) 群头像的生成方法及装置
WO2024193418A1 (zh) 页面配置方法、电子设备及存储介质
CN107294835A (zh) 一种即时通讯中的文件发送方法及装置
Bertini et al. Extended excentric labeling
CN110825472A (zh) 图表颜色绘制方法、装置、可读存储介质和电子设备
US8913076B1 (en) Method and apparatus to improve the usability of thumbnails
US7663644B2 (en) Automatic element substitution in vector-based illustrations
Mansfield The joy of X: an overview of the X Window system
CN115562539A (zh) 控件显示方法及装置、电子设备和可读存储介质
CN114675798A (zh) 一种电子设备的翻译显示方法
CN108228036B (zh) 一种windows中窗口菜单的实现方法及装置
CN106371695A (zh) 一种自定义光标的处理方法和装置
CN103139050A (zh) 关系圈类产品的信息更新提示方法、系统及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19910578

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19910578

Country of ref document: EP

Kind code of ref document: A1