Skip to content

Releases: maptalks/maptalks.js

V0.46.0 Released

15 Nov 06:41
Compare
Choose a tag to compare

不兼容变化

  • 为了更好的兼容三维渲染,世界坐标系改为与 opengl 坐标系一致,具体可以参考: maptalks/maptalks.three#30
    这次修改对核心库没有影响,但可能引起老版本的threeLayer等webgl图层插件的绘制错误

新功能

  • map.getFitZoom(fromZoom, isFractional) 增加isFractional参数,允许返回非整数级别, #1014
  • 允许ToolTip支持其他各类图形
  • VectorLayer.addGeometry的fitView参数可以用对象的形式,来添加fitView动画, #1011

bug修改

  • 解决文字不对齐的问题, #1019
  • 解决geometry.startEdit会生成多次编辑handle的问题,#915
  • 解决动态大小的marker不正确的事件响应,#1029
  • 解决开启smooth的线某些时候绘制不正确的问题, #930
  • 解决geometry动画移图时,TileLayer不重绘的问题 #1028

贡献者

@deyihu @sakitam-fdd @geek4go

Breaking Changes

Features

  • map.getFitZoom(fromZoom, isFractional) add isFractional param, allow to return zoom with fraction. #1014
  • Allow ToolTip to support other graphics other than VectorLayer geometries.
  • VectorLayer.addGeometry's fitView supports object, to add map animation. #1011

Fixes

  • Fix label alignment, #1019
  • Fix multiple generation of editor handle when calling geometry.startEdit for multiple times, #915
  • Fix marker's incorrect event fire of markers with dynamic size, #1029
  • Fix wrong drawing of LineString with smoothness turning on, #930
  • Fix rendering of TileLayer during geometry.animate

Contributors

@deyihu @sakitam-fdd @geek4go

V0.45.1 Released

17 Sep 03:37
Compare
Choose a tag to compare

Fixes

V0.45.0 Released

09 Sep 13:02
Compare
Choose a tag to compare

新功能

  • 实现了无级缩放,在map中用 seamlessZoom: true 开启
  • GeoJSON.toGeometry, 增加forEach参数, #959
  • map增加zoomOrigin(container坐标)设置,用于指定自定义的缩放中心点

改进

  • 内部逻辑尽量重用对象和数组,减少新对象创建以减少GC

bug修改

  • 解决缩放后,偶发性绘制错误,#962
  • 解决WMS瓦片之间的绘制空隙, #961
  • 解决不同投影下,瓦片错位的问题, #939
  • markerPath支持function-type, #966
  • 解决Y轴平行的line,用pattern填充时,消失的问题, #977
  • 解决debug的文字内容, #978
  • 解决maxExtent回弹的问题,#985 #970
  • 解决旋转时的map.panBy
  • 地图动画时(缩放)暂停用户动画(map.animateTo),结束后恢复

贡献者

@XiangLiLiang @sakitam-fdd


Features

  • implement seamless zooming, turn on by seamlessZoom: true in map's options
  • add forEach callback to GeoJSON.toGeometry method, #959
  • add zoomOrigin (containerPoint) to set customized zooming origin

Improvements

  • Reuse array and object in internal methods, to reduce new object creation

Fixes

  • Fix occasional wrong painting at zoom end, #962
  • Fix white gap between WMS tiles, #961
  • Fix incorrection position of tiles of different projections, #939
  • Let markerPath to support function-type, #966
  • Fix disappeared line with pattern fill that aligns with Y axis, #978
  • Fix bouncing back at world level, #970 #985
  • Fix map.panBy with bearing
  • Resume user's animation after map's internal animation (zooming etc)

Contributors

@XiangLiLiang @sakitam-fdd

V0.44.2 Released

27 May 07:32
Compare
Choose a tag to compare

小改进

  • map对象上增加VERSION属性
  • 在DrawTool的geometry生成方法参数中增加了drawTool对象引用

修正

  • 修正node环境下,devicePixelRatio的bug
  • 修正ToolTip无法设置width和height的bug
  • 修正pie矢量marker的sprite生成
  • 修正图层为gl renderer时,无法正确clip的bug,#909
  • 修正extent的投影逻辑,并解决一个相关的maxExtent的bug,#899

贡献者

@nioty @deyihu @sakitam-fdd


Minor Features

  • Add VERSION property in map instance
  • Add drawtool reference in drawtool geometry generation methods

Fixes

  • Fix devicePixelRatio in node environment
  • Fix tooltip can't set width and height
  • Fix pie vector marker's sprite
  • Fix layer clip with gl renderer, as #909
  • Fix extent's projection and a related bug with maxExtent, as #899

Contributors

@nioty @deyihu @sakitam-fdd

V0.44.0 Released

15 Apr 13:17
Compare
Choose a tag to compare

Features

  • add a new Handler autoPanAtEdge, #877
  • add default support in function type
  • add checkSizeInterval option to map
  • add 'devicePixelRatio' option and getDevicePixelRatio() in map, as #869

Fixes

  • fix conflict with vue's object reactivating
  • fix a bug of ImageLayer when viewing images in earth scale, as #887
  • fix custom infowindow's position, as #873
  • let OverlayLayer.filter return array, fix #881
  • change anti-meridian direction, fix #888
  • fix coordinate direction in TileConfig.getTilePrjNW
  • fix map.panBy's direction, as #879
  • fix DistanceTool's disable, as #865
  • retire image glbuffer if needs to, fix #861

Contributors

@deyihu @mirror-riddle

新特性

  • 增加新的map handler: autoPanAtEdge, 鼠标移动到地图边缘后会自动滑动 #877
  • function type 中增加default的支持
  • map option 中增加 checkSizeInterval,用于指定容器变化的检查间隔时间
  • map option 中增加 devicePixelRatio,用于自定义devicePixelRatio, 并在map上增加 getDevicePixelRatio() 方法

修正

  • 修正与vue reactivating的对象检查的冲突
  • 修正ImageLayer绘制大尺度图片时会消失的问题 #887
  • 修正自定义信息框的位移, #873
  • OverlayLayer.filter 返回数组,修正 #881
  • 改变 anti-meridian 图形的绘制方向,修正 #888
  • 修正 TileConfig.getTilePrjNW 中的坐标方向
  • 修正 map.panBy 的方向,#879
  • 修正 DistanceTool 只绘制一个点时的disable, #865
  • 在必要时删除 image glbuffer,修正一些绘制错误,fix #861

贡献者

@deyihu @mirror-riddle

V0.43.0 Released

28 Jan 14:36
Compare
Choose a tag to compare

Features

  • Add a new method getListeningEvents in Eventable
    Eventable Mixin增加了一个新的方法:getListeningEvents
  • (@lifefriend ) Add a new option 'tileRetryCount' in TileLayer, as #853
    TileLayer增加新的 option tileRetryCount 用于设置瓦片重试次数

Fixes

  • (@deyihu )Fix simplify of polygon with holes, as #804
    解决带洞多边形简化的一个bug, #804
  • Draw to a temparary canvas when polgyon has hole, fix #850
    将带洞多边形绘制在一个临时canvas上,解决 #850
  • Fix error of line gradient out of screen, as #834
    解决屏幕之外的 line gradient 会报错的bug,#834
  • Fix containerExtent of LineString with altitude, as #847
    解决有高度的LineString的容器范围,#847
  • Fix tile's full index in a given extent, as #825
    修正给定范围内的瓦片序号计算, #825

Contributors

@lifefriend @XiangLiLiang @deyihu

V0.42.2 Released

23 Dec 07:12
Compare
Choose a tag to compare

Minor Features

  • Add zoomOffset option in TileLayer to specify tile's zoom offset from map's zoom.

Enhancements

  • Ignore tiles out of tilelayer's full extent, as #825
  • Can set crossOrigin to undefined to override tile's default crossOrigin value, as #826

Fixes

  • Fix UIComponent autopan's top position (#831), fix #830
  • Fire hide event after animation (#833), fix #832
  • Fix infinite loop of an edge case for baidu projection
  • Fix changing spatial reference by config

V0.42.1 Released

20 Nov 13:12
Compare
Choose a tag to compare

Minor Feature

  • Add fixCenterOnResize to map to fix map's center when resizing

Fixes

  • Fix blank tiles of TileLayer with dynamic offset, as #815
  • Fix LineString animateShow with with empty coordinates, as #808
  • Fix null of context with retina screen, as #802
  • Fix missing handledragstart event of geometry editor (#810)

Contributor

@wxia5

V0.42.0 Released

14 Oct 15:08
Compare
Choose a tag to compare

Features

  • Add a new option interactive in Geometry to enable/disable interaction, as #781
  • Add containerClass option to ScaleControl to customize its css style, as #792
  • Add 2 new options pitchWithMap and rotateWithMap to UIComponent, to enable UIMarker rotate and tilt with map, as #766
  • Add ToolTip support to UIMarker, as #799
  • Add support of MultiPolygon to layer's mask, as #801

Fixes

  • Fix WMSTileLayer's initial zIndex, as #780
  • Fix setView with pitch, bearing and zoom is 0, as #794

Enhancements

  • Check if tile is out of map's extent, as #778 and #768

Thanks to

@Liquid-Zhangliquan @davidweining2333 @alex2wong @deyihu @treasureMoment

V0.41.1 Released

03 Sep 08:28
Compare
Choose a tag to compare

Fixes

  • Fix bad mangled maptalks.min.js by uglify 3.4.x, rollback to uglify 3.3.28