The invention provides a map display method and a device, belonging to the technical field of electronic map. The method comprises: when detected on the measurement point selection operation, will be selected according to the operation of the measuring point as the starting point of measurement, detection of selected media with a starting point for mobile measurement operation start position; when the detected moving operation of the selected media, mobile media based on trajectory selection, map display. The invention displays the map based on the moving track of the selected medium when detecting the moving operation of the selected medium. The map can automatically display trajectories based on selected media when showing the map, in the selection of measurement points in the process of automatic map display according to the user selected will, without requiring the user to select media onto the edge of the map to move the map display, then select the measurement point, so as not to spend extra time mobile map. At the same time, the process of displaying maps is better for the user interaction experience.
【技术实现步骤摘要】
地图展示方法及装置
本专利技术涉及电子地图
,更具体地,涉及一种地图展示方法及装置。
技术介绍
目前的在线地图平台通常会提供测距功能,即测量地图上任意两个点之间的实际直线距离。具体地,用户可在地图上选取测量点,再按照一定算法,计算所有测量点所形成的测量路径中任意两个测量点之间的距离。由于设备界面中展示地图的范围通常有限,从而用户在地图上选取测量点时,需要在当前展示地图范围内选取测量点。若用户需要在当前展示地图范围外选取测量点,则需要展示该范围外的地图。相关技术中提供了一种地图展示方法,在该方法中,通过检测选取媒介的位置,在检测到选取媒介移动至当前展示地图的边缘时,地图按照一定速度向该边缘的反方向进行平移,从而实现地图展示。以选取媒介为鼠标指针为例,当检测到鼠标指针移动至当前展示地图的左侧边缘时,左侧边缘外没显示的地图会按照一定速度向右侧平移。其中,移动持续时间取决于选取媒介在地图边缘上停留的时间,上、下及右边缘的地图移动过程同理。在实现本专利技术的过程中,发现现有技术至少存在以下问题:由于在地图展示时需要用户将选取媒介拖至地图边缘,若用户当前需要选取的测量点与上一次选取的测量点之间距离较远,则用户需要将选取媒介在地图边缘停留较长时间以将地图拉至相应位置,从而导致地图移动比较耗费时间。另外,展示地图过程对应的用户交互体验较差。
技术实现思路
为了解决上述问题,本专利技术提供一种克服上述问题或者至少部分地解决上述问题的地图展示方法及装置。根据本专利技术的第一方面,提供了一种地图展示方法,该方法包括:步骤1,当检测到对测量点的选取操作时,将选取操作对应的测量点 ...
【技术保护点】
一种地图展示方法,其特征在于,包括:步骤1,当检测到对测量点的选取操作时,将所述选取操作对应的测量点作为起始测量点,检测选取媒介以所述起始测量点为起始位置的移动操作;步骤2,当检测到对所述选取媒介的移动操作时,基于所述选取媒介的移动轨迹,对地图进行展示。
【技术特征摘要】
1.一种地图展示方法,其特征在于,包括:步骤1,当检测到对测量点的选取操作时,将所述选取操作对应的测量点作为起始测量点,检测选取媒介以所述起始测量点为起始位置的移动操作;步骤2,当检测到对所述选取媒介的移动操作时,基于所述选取媒介的移动轨迹,对地图进行展示。2.根据权利要求1所述的方法,其特征在于,所述步骤2中基于所述选取媒介的移动轨迹,对地图进行展示,包括:步骤21,获取所述选取媒介在所述移动轨迹中每一途径点上的移动状态;步骤22,基于所述选取媒介在所述移动轨迹中每一途径点上的移动状态,对地图进行展示。3.根据权利要求2所述的方法,其特征在于,所述步骤22进一步包括:步骤221,基于所述选取媒介在每一途径点上的移动状态,获取所述选取媒介在每一途径点上的停留时长;步骤222,根据所述选取媒介在每一途径点上的停留时长,对地图进行展示。4.根据权利要求3所述的方法,其特征在于,所述步骤222进一步包括:若不存在停留时长大于预设阈值的途径点,根据所述选取媒介在每一途径点上的移动方向,对地图进行移动展示。5.根据权利要求4所述的方法,其特征在于,所述根据所述选取媒介在每一途径点上的移动方向,对地图进行移动展示,包括:基于所述选取媒介在每一途径点上的移动方向及移动速度,确定地图的移...
【专利技术属性】
技术研发人员:刘林,沈双峰,付诚,
申请(专利权)人:武汉依迅北斗空间技术有限公司,
类型:发明
国别省市:湖北,42
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。