Ol Cesium

OpenLayers - Cesium integration
Alternatives To Ol Cesium
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Ol Cesium892987 days ago42September 06, 2023148bsd-2-clauseJavaScript
OpenLayers - Cesium integration
Iclient Javascript790175 days ago20June 29, 202219apache-2.0JavaScript
Modern GIS Web Client for JavaScript, based on Leaflet\OpenLayers\MapboxGL-JS\Classic(iClient8C), enhanced with ECharts\D3\MapV etc. Contributed by SuperMap & community.
Mapstore2426214 hours ago6August 26, 2022535otherJavaScript
Modern webmapping with OpenLayers, Leaflet, Cesium and React
Wind Layer397102 months ago15April 09, 202111otherTypeScript
:flags: :rocket: wind-layer | a openlayers && maptalks && amap && bmap && leaflet && mapbox-gl extension like windy.com
Gibs Web Examples176
6 months ago2otherJavaScript
Examples of using GIBS with various web mapping libraries
Webclient Javascript157
5 months ago1apache-2.0HTML
MapGIS Client for JavaScript, is a cloud GIS network client development platform. It makes a perfect fusion of traditional WebGIS and cloud GIS; also integrates four mainstream map open source frameworks and visualization libraries such as Echarts, MapV, and D3, etc.. Therefore, highly-efficient visual expression and analysis of big data and real-time streaming data have been further enhanced.
Mapwidget153
6 months ago9January 23, 20232mitPython
Custom Jupyter widgets for creating interactive 2D/3D maps using popular JavaScript libraries with bidirectional communication, such as Cesium, Mapbox, MapLibre, Leaflet, and OpenLayers
Awesome Openlayers122
2 years ago1
List of all related content on OpenLayers library
Data Visualization Technology Sharing91
6 years ago
webgis webgl d3 mapbox leaflet opengl mapV echarts three.js d3 cesium openlayers
Osh Js27
9 months ago35mpl-2.0JavaScript
Javascript toolkit to visualize data from OSH
Alternatives To Ol Cesium
Select To Compare


Alternative Project Comparisons
Readme

OpenLayers - Cesium integration library. Create your map using OpenLayers, and visualize it on a globe with Cesium. See live examples.

ES6 modules

Since version 2.0, the code is entirely based on ES6 modules and syntax. It requires OpenLayers 6.x. A convenient ES6 package olcs is available on npm.

Features

Switch smoothly between 2D and 3D and synchronize:

  • Map context (bounding box and zoom level);
  • Raster data sources;
  • Vector data sources in 2D and 3D;
  • Map selection (selected items);
  • Animated transitions between map and globe view.

The library is configurable and extensible and allows:

  • Lazy or eager loading of Cesium
  • Limiting Cesium resource consumption (idle detection)

For synchronization of maps in projections other than EPSG:4326 and EPSG:3857 you need 2 datasets, see the customProj example.

Integration in your application

There are several ways to integrate OL-Cesium in your application. In all cases OpenLayers and Cesium are peer-dependencies of OL-Cesium, your application need to depend on a compatible version of OpenLayers and of Cesium. Note that Cesium is accessed through the global window.Cesium object. OpenLayers is accessed through ES6 imports.

As an ES6 library (recommended method)

npm i --save olcs

Then import the parts you need. Example:

import OLCesium from 'olcs/OLCesium.js';
const ol3d = new OLCesium({map: ol2dMap}); // ol2dMap is the ol.Map instance
ol3d.setEnabled(true);

In addition, you need to expose the Cesium library as window.Cesium. For this, simply add the Cesium script to your html:

<script type="text/javascript" src="..your_path../Cesium.js"></script>

For Cesium integration with Webpack, see ol-cesium-webpack-example.

As an old-fashioned independent library (need update)

  • build the library in dist/olcs.js:
npm i --save olcs
npm run build-library
const ol3d = new olcs.OLCesium({map: ol2dMap}); // ol2dMap is the ol.Map instance
ol3d.setEnabled(true);

For the remaining steps, see the old fashioned example. Notably, you need the Cesium library.

As an UMD library (Angular, ...)

npm i --save ol-cesium

The UMD-specific build is located here: node_modules/ol-cesium/dist/olcesium.umd.js

Then import the parts you need. Example:

import OLCesium from 'ol-cesium';
const ol3d = new OLCesium({map: ol2dMap}); // ol2dMap is the ol.Map instance
ol3d.setEnabled(true);

In addition, you need to expose the Cesium library as window.Cesium. For this, simply add the Cesium script to your html:

<script type="text/javascript" src="..your_path../Cesium.js"></script>

Going further

See the examples.

Use properties to control specific aspects of OL-Cesium integration, see the PROPERTIES.MD.

If you are new to Cesium, you should also check the Cesium tutorials.

Running the examples in debug mode

This is useful for contributing to Ol-Cesium, because it loads the source files instead of a minified build:

$ make serve

will make the distribution examples available at http://localhost:3000/examples

Running the unminified version of Cesium

Passing the parameter ?mode=dev to an example will load the debug version of Cesium instead of the minified one. This is helpful when something breaks inside Cesium. In distribution mode, an unminified version of OpenLayers and Ol-Cesium is also loaded.

Limitations

Release process

See RELEASE.md.

Popular Cesium Projects
Popular Openlayers Projects
Popular Mapping Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Javascript
3d
Globe
Openlayers
Cesium