Skip to content

Releases: maptalks/maptalks.js

V0.38.2 Released

04 Feb 11:51
Compare
Choose a tag to compare

Enhancement

  • Add a new option maxAvailableZoom in TileLayer,maximum zoom level for which tiles are available. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels.

Fixes

  • Fix conflicts of InfoWindow's autoOpenOn and autoCloseOn
  • Fix layer clipping on retina screen

V0.38.1 Released

01 Feb 10:18
Compare
Choose a tag to compare

A trivial update.
Just change map's maxVisualPitch back from 56 to 60.

V0.38.0 Released

01 Feb 08:37
Compare
Choose a tag to compare

Features

  • Increase camera's farZ and draw a fog in far distance, add two new option in map : fog fogColor to turn on/off fog and indicate fog's color.

  • Press ctrl + 0 to reset map's bearing

  • Add array map.cameraUp for map's camera up vector

  • Auto rotate marker with line segment's direction if markerPlacement is vertex, as #594 , example
    image

  • Support rotate and tilt map by two finger touch gestures, add following new options in map, as #591 :

    • touchGesture : whether turn on touch gesture
    • touchRotate : whether turn on touch rotation
    • touchPitch : whether turn on touch tilting
    • touchZoomRotate : turn on to make map rotate and zoom at the same time by touch pinches.
  • Add a new method getOutline in geometry, as #598

  • Add a new method getContainerExtent in geometry

  • Add add support of map varibles in function type: {zoom} {bearing} {pitch}, as #609

  • Add a new option clipByPitch in TileLayer

Enhancements

  • Add LRU Cache in tilelayer, to speed up tiles loading, as #597 , add a new options in TileLayer maxCacheSize to set cache's max capacity.
  • Improved tilelayer's performance by saving gl buffers and using static draw.
  • New hit testing strategy with pixel reading, support hit testing of curves or any shape.
  • Reuse arrays to save memory in map matrix cacluation.
  • Close layer switcher when clicking on map, from #596
  • Add default resolutions and full extent for identity projection
  • Add rotation sliding, as #581
  • Only fire dragend when geometry actually moves, as #610

Fixes

  • Fix blank webgl canvas when browser tab visibility changes, as #592
  • Fix tilelayer's background painting when rotating
  • Fix overview control's baseLayer display in some edge cases, as #600
  • Fix tile cancelling in tilelayer gl renderer.
  • Fix matrix caculation when map size is 0.
  • Fix marker dragging conflicts, as #603
  • Fix dragging of geometry with altitude, as #501
  • Fix shadow for text inner stroke, as #588
  • Fix a bug for updating layer z-index, as #602
  • Fix vector layer redraw when map is rotating and zooming

Breaking Changes

  • To sync text rotation with map's rotation, change text's rotation direction from count clock wise to clock wise.
  • markerPlacement : vertex changes to auto rotate marker with line segment's direction

Contributors

@1dent1ty

V0.37.0 Released

11 Jan 05:08
Compare
Choose a tag to compare

Features

  • Enable TileLayer to load tiles with different spatial reference from map, as #561
    • e.g. A map with 4326 projection load tiles of 3857 projection, example
  • Add support of base64 images as linePattern or fillPattern symbol
  • Change to draw texthalo with outer stroke instead of inner+outer stroke, as #563
    • inner + outer (old)
      tim 20171218215338
    • outer (new)
      tim 20171218215334
  • Add smoothness option in LineString/Polygon to draw line smoothly with bezier curve
  • Add a uid on map instance, obtained by map.id
  • Add two new events removestart and removeend to map
  • Add two new events tileload and tileerror to TileLayer
  • Add zoomBackground option in TileLayer to control whether to show a background after zooming
  • Add attribution in Layer.options, to display in maptalks.control.Attribution

Fixes

  • Fix screen point projection from world point, when it's behind camera, as #574
  • Fix conflict of map.animateTo and scrollZoom
  • Fix not thrown viewchange event when view hits view history
  • Fix VectorLayer.setOpacity
  • Fix little tail of LineString/Polygon when using DrawTool to draw on mobiles, as #560
  • Fix InfoWindow's map events listening
  • Fix layer canvas resize on retina screen
  • Fix text repaint when geometry's properties is updated, as #570
  • Fix zoomable option doesn't work, as in #579

Breaking changes

  • Seperate createContext and createCanvas in CanvasRenderer
  • Remove shadow options in geometry, change to define shadow in symbol, as #577
  • Add createCanvas2 in ImageGLRenderable, in case another canvas is needed in layer renderer
  • QuadBezierCurve changes to treat coordinates as control points

Contributors

V0.37.0-alpha.1 Released

10 Jan 04:22
Compare
Choose a tag to compare
Pre-release

An alpha release

V0.36.2 Released

07 Dec 05:48
Compare
Choose a tag to compare

Fixes

  • Fix an error if geometry returns null paint params in painter

V0.36.0 Released

06 Dec 14:21
Compare
Choose a tag to compare

Features

  • Add a new option dragRotatePitch to enable map to drag to rotate and tilt at the same time.
    Example
  • Add projection parameter in maptalks.Extent to support extent crossing anti-meridian like from [170, 20] to [-160, 40]
const extent = new maptalks.Extent(170, 20, -160, 40, map.getProjection());
extent.contains([180, 40]); //true
  • Add a new method fromProjectionCode in maptalks.CRS
  • Add a new option removeVertexOn in geometry.startEdit to customize event to remove a vertex
  • Extract a new mixin ImageGLRenderable from TileLayerGLRenderer
  • Add drawTinImage in ImageGLRenderable, prepare for some tin painting
    tin

Fixes

  • Fix a bug when updating spatial reference and swtiching GroupTileLayer's child layer.

Improvements

  • Some perf improvement in layer canvas image rendering

V0.35.1 Released

25 Nov 11:49
Compare
Choose a tag to compare

Features

  • Add a new control maptalks.control.LayerSwitcherControl (example). By @1dent1ty in #547
  • map.addLayer supports rest arguments now
  • Add a new method endDraw method in DrawTool
  • Add two method in Layer, setOpacity and getOpacity
  • Reimplement 3D transform matrixes
  • Add two new symbol properties markerHorizontalAlignment and markerVerticalAlignment
  • Add 4 new event in Map: rotatestart, rotateend, pitchstart and pitchend
  • Add 2 new method in Map: getGLZoom and getGLScale

Fixes

  • Fix several compatible bugs on IE9
  • Fix an error to setCoordinates when geometry is being edited, as #551
  • Fix event on/off with event map object
  • Fix linestring/polygon with altitude's painting
  • Fix wrong extent of rectangle with a reversed fullExtent of identity projection
  • Fix WMS parameters with WMS version < 1.3.0
  • Fix tilelayer's rendering after setting zoom without animation
  • Fix infowindow's reopen, as #546
  • Fix SVG marker painting on firefox, as #543
  • Fix black tile image on IE, as #541

Improments

  • TileLayer, change tile texture's min filter to make tile look more clear

Contributors

@1dent1ty

V0.34.0 Released

10 Nov 03:56
Compare
Choose a tag to compare

Features

  • Add tolerance in map.identify/VectorLayer.identify
  • Add event param in map's moveend/moving event

Fixes

  • Fix bug in Circle/Ellipse.containsPoint, as #532
  • Fix dup contextmenu event, as #533
  • Fix a bug in map.getZoomFromRes influencing map.getFitExtent
  • Fix IS_NODE in nw.js

Improvements

  • Add shorter aliases for coordinate conversion methods
  • Improved Tilelayer's animation performance: demo 示例

V0.33.1 Released

25 Oct 08:30
Compare
Choose a tag to compare

Fixes

  • Fix position of marker's auto open infowindow, as #525