cesium 001 study notes

Recently we began to engage in a cesium. Began to build environmental aspects and pay attention.

Server: geoserver + apache 

Development Environment: webstorm

  Precautions: cesium loaded geoserver of services related to cross-domain issues, the need for cross-domain process.

The first case: Load WMS Services

    viewer.imageryLayers.addImageryProvider(new Cesium.WebMapServiceImageryProvider({
        url:'http://localhost:8080/geoserver/topp/wms',
        layers:'topp:tasmania_roads',
        // proxy: new Cesium.DefaultProxy('/proxy/'),
        parameters:{
            service:'WMS',
            format:'image/png',
            transparent:true
        }
    }));

The results are shown:

 

Guess you like

Origin www.cnblogs.com/zqctzk/p/11609444.html
001