reearth / resium

React components for 🌏 Cesium
https://resium.reearth.io
MIT License
727 stars 134 forks source link

How to turn WebMapServiceImageryProvider into Layer and Deployment #398

Closed KritTangcharoenkijkul closed 3 years ago

KritTangcharoenkijkul commented 4 years ago

Hi there,

Currently, I am doing Web Map Service Imagery Provider to display WMS on the map. I managed to do it.

image

However, I want to make it into an Imagery Layer similarly to this picture. By adding layer allowing them to be shown or not shown in form of layer.

image

The code that I use is as follow

import React from "react"; import { Viewer, ImageryLayer } from "resium"; import { WebMapServiceImageryProvider } from "cesium";

const App = () => (

); export default App;

Also, I have tried deploying the Resium result on the web for few days. However, today, the Earth disappears. However, the icon is still there. Is it because of licensing or its just glitches out?

image

Thank you

rot1024 commented 4 years ago
import React from "react";
import { Viewer, ImageryLayer } from "resium";
import { WebMapServiceImageryProvider } from "cesium";

const App = () => (

); export default App;

Please provide code inside App component so that I know details.