4.0.0 @ 2018-08-01
Changed
-
remove() function added to explicitly remove objects, markers or layers
-
code optimizations for overall performance
-
reduced loading lag by using web workers
-
less CPU load by throttling renderer if there is no activity
-
native markers enabled, source is SVG
-
code base rewritten to ES6
-
'pointerup' event now returns target objects
-
new 'load' event when viewer is ready
-
multiple objects can be highlighted at once
-
multiple objects can be hidden at once
-
build process simplified
-
sky texture dependency removed
-
loaded buildings are growing in again
-
document events now acting on top rather than window
Fixed
- Skillion roof with inner rings rendering fixed
- viewer resize fixed
- previous color adjustments reduced
- tile loading order reverted
Breaking changes
- OSMBuildings() - options 'baseURL', 'showBackfaces', 'highlightColor', 'fogColor', 'effects[]' removed
- OSMBuildings now initializes with option 'container' instead of using method appendTo()
- methods appendTo(), show(), getTarget(), screenshot() removed
- events 'busy' and 'idle' removed
- picking on pointer movement removed
- setSize() - now takes width, height instead of { width: x, height: y }
- addGeoJSON() - option 'fadeIn' removed
- addOBJ() - option 'fadeIn' removed
- all keys/variables 'elevation' are renamed to 'altitude'