Re: [cesium-dev] How to use MapServer.org instead of Bing?

507 views
Skip to first unread message

Scott Hunter

unread,
Apr 24, 2014, 4:33:16 PM4/24/14
to cesiu...@googlegroups.com
This tutorial shows how to configure the imagery used on the globe:





On Thu, Apr 24, 2014 at 1:48 PM, <sdelga...@gmail.com> wrote:
Can someone point me in the right direction? I am trying to use MapServers instead of Bing Maps or Google Earth to generate the map, but I don't see where I can change which Map Engine Cesium uses. Can someone tell me how to use Google instead of Bing that would be a step in the right direction for me.

Thanks

--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

sdelga...@gmail.com

unread,
Apr 24, 2014, 5:03:00 PM4/24/14
to cesiu...@googlegroups.com
Scott,

Thanks for replying.

I was following trying to follow this tutorial but specifically for the Google Earth map, I am trying to figure out how to display the globe based off the tutorial this is what I came with for the helloworld html but it does not work
here is my code if you can explain why its not why and maybe correct it I would greatly appreciate it.


<!DOCTYPE html>
<html lang="en">
<head>
<!-- Use correct character set. -->
<meta charset="utf-8">
<!-- Tell IE to use the latest, best version (or Chrome Frame if pre-IE11). -->
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<!-- Make the application on mobile take up the full browser screen and disable user scaling. -->
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<title>Hello World!</title>
<script src="Cesium/Cesium.js"></script>
<style>
@import url(Cesium/Widgets/widgets.css);

#cesiumContainer {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
margin: 0;
overflow: hidden;
padding: 0;
font-family: sans-serif;
}

body {
padding: 0;
margin: 0;
overflow: hidden;
}
</style>
</head>
<body>
<div id="cesiumContainer"></div>
<script>
var widget = new Cesium.CesiumWidget('cesiumContainer', {
imageryProvider : new Cesium.GoogleEarthImageryProvider({
url : 'http://earth.localdomain',
channel : 1008
})
});

</script>
</body>
</html>

sdelga...@gmail.com

unread,
Apr 24, 2014, 5:04:15 PM4/24/14
to cesiu...@googlegroups.com, sdelga...@gmail.com
it just creates the space of the google earth globe but its empty

Scott Hunter

unread,
Apr 24, 2014, 5:14:00 PM4/24/14
to cesiu...@googlegroups.com
Is 'http://earth.localdomain' the correct URL for your local Google Earth Enterprise Server?  Also check the channel parameter.  See the documentation: http://cesiumjs.org/Cesium/Build/Documentation/GoogleEarthImageryProvider.html


sdelga...@gmail.com

unread,
Apr 24, 2014, 5:28:43 PM4/24/14
to cesiu...@googlegroups.com
Alright, I think I maybe a bit confused. I am just doing research on seeing how cesium interacts with the different imageryproviders, so I am trying them out, this is why I was confused specifically with the Google Earth Imagery Provider. Bing and ArcGis had URL that could point to without hosting the server myself.

To get Google Earth to work properly I need to host the Google Server myself is that correct?

Scott Hunter

unread,
Apr 24, 2014, 6:10:17 PM4/24/14
to cesiu...@googlegroups.com
Correct.  Google does not allow third party applications to access the public Google Earth servers.  Google Earth Enterprise is a paid product.


On Thu, Apr 24, 2014 at 5:28 PM, <sdelga...@gmail.com> wrote:
Alright, I think I maybe a bit confused. I am just doing research on seeing how cesium interacts with the different imageryproviders, so I am trying them out, this is why I was confused specifically with the Google Earth Imagery Provider. Bing and ArcGis had URL that could point to without hosting the server myself.

To get Google Earth to work properly I need to host the Google Server myself is that correct?

sdelga...@gmail.com

unread,
Apr 25, 2014, 9:48:29 AM4/25/14
to cesiu...@googlegroups.com
Great thanks clears things up!!
Reply all
Reply to author
Forward
0 new messages