Releases: alberto-acevedo/cesium-navigation
Fix Cesium v1.37 breaking change. Contributed by Peter Kimberley.
Fix Cesium v1.37 breaking change. Contributed by Peter Kimberley.
Removed dependency to Leaflet.
Removed dependency to Leaflet library. This dependency that was not used by the plugin, was interfering in cases when switching from 3D Cesium to 2D Leaflet. The conflict happened when the Leaflet version was not the same as the version specified in the plugin.
Removed all the modal styles from the plugin. These styles were conflicting with client apps using the plugin.
- Removed all the modal styles from the plugin. These styles were conflicting with client apps using the plugin.
Added Capability To Lock Compass And Navigation Controls
Added the capability to lock the compass and navigation controls. This capability allows the plugin to be in the same lock mode of the map. Contributed by Alberto Acevedo.
Added option to enable/disable camera controls on the outer ring
New in this release:
- Fixed issue when using require.optimize when 'Cesium' points to the built Cesium.js file instead of the Cesium source directory. Contributed by Gabriel Cordes (https://github.com/Larcius).
- Added option to enable/disable camera controls on the outer ring. Values accepted are true for enabling and false to disable. The default is true. The ring will be visible but inactive if setting the option to false. Contributed by Kristopher Wagner (https://github.com/KristopherWagner).
- Plugin tested in Cesium version 1.27.
New options to enable or disable individual components of the plugin.
enableCompass --> option used to enable or disable the compass. Values accepted are true for enabling and false to disable. The default is true.
enableZoomControls --> option used to enable or disable the zoom controls. Values accepted are true for enabling and false to disable. The default is true.
enableDistanceLegend --> option used to enable or disable the distance legend. Values accepted are true for enabling and false to disable. The default is true.
Example of using the options when loading Cesium without requirejs:
var options = {};
options.defaultResetView = Cesium.Rectangle.fromDegrees(71, 3, 90, 14);
// Only the compass will show on the map
options.enableCompass= true;
options.enableZoomControls= false;
options.enableDistanceLegend= false;
cesiumViewer.extend(Cesium.viewerCesiumNavigationMixin, options);
Plugin has the capability to track moving entities.
New in this release:
- updated to cesium v1.23
- using correct focus point when tracking an entity
- in 3D mode zooming is now with animation but not when an entity is tracked
- updated node modules and bower components
- examples: added Spirograph position property so that the entities are moving. this is important to test the mixin plugin for tracked moving entities. See larcius example at http://larcius.github.io/cesium-navigation/
- options for the plugin:
defaultResetView --> option used to set a default view when resetting the map view with the reset navigation
control. Values accepted are of type Cesium.Cartographic and Cesium.Rectangle.
More options will be set in future releases of the plugin.
Cesium Navigation plugin converted to a mixin design pattern
Cesium Navigation plugin converted to a mixin design pattern. This version removes the dependency on the css file.The excellent work of converting the plugin to a mixin pattern was accomplished by Gabriel Cordes.