V0.38.0 Released
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
isvertex
, as #594 , example
-
Support rotate and tilt map by two finger touch gestures, add following new options in map, as #591 :
touchGesture
: whether turn on touch gesturetouchRotate
: whether turn on touch rotationtouchPitch
: whether turn on touch tiltingtouchZoomRotate
: 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