Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http://localhost:8090/geoserver/geog/wms?service=WMS&version=1.1.0&request=GetMap&layers=geog:ne_10m_admin_0_countries_lakes&styles=&bbox=-179.9999999999999,-89.99999999999996,180.00000000000028,83.63410065300016&width=768&height=370&srs=EPSG:4326&format=text%2Fhtml%3B%20subtype%3Dopenlayers
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <!-- Use correct character set. -->
- <meta charset="utf-8">
- <!-- Tell IE to use the latest, best version. -->
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <!-- Make the application on mobile take up the full browser screen and disable user scaling. -->
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
- <title>Hello World!</title>
- <script src="../Build/Cesium/Cesium.js"></script>
- <style>
- @import url(../Build/Cesium/Widgets/widgets.css);
- html, body, #cesiumContainer {
- width: 100%; height: 100%; margin: 0; padding: 0; overflow: hidden;
- }
- </style>
- </head>
- </head>
- <body>
- <div id="cesiumContainer"></div>
- <script>
- var widget = new Cesium.CesiumWidget('cesiumContainer');
- var url='http://localhost:8090/geoserver/geog/wms';
- var layers = widget.scene.globe.imageryLayers;
- layers.removeAll();
- layers.addImageryProvider(new Cesium.WebMapServiceImageryProvider({
- url : url,
- layers: 'geog:ne_10m_admin_0_countries_lakes'
- }));
- Sandcastle.finishedLoading();
- </script>
- </body>
- </html>
- Uncaught ReferenceError: Sandcastle is not defined
- at WMS.html:34
- Access to Image at 'http://localhost:8090/geoserver/geog/wms?service=WMS&version=1.1.1&request=GetMap&styles=&format=image%2Fjpeg&layers=geog%3Ane_10m_admin_0_countries_lakes&srs=EPSG%3A4326&bbox=0%2C-90%2C180%2C90&width=256&height=256' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.
Add Comment
Please, Sign In to add comment