Google Earth Web/Online WMS - google-earth

I am trying to add a WMS service to Google Earth Web/Online: https://earth.google.com/web
I tried importing a .kml file that works in the desktop version of GE but had no success. I also tried adding a tile overlay, which failed as well. I could not find any recommendations for working with WMS services in the google faq/ help docs or on the web. Has anyone been successful with this?
The WMS I would like to add: http://www.geoportal.rlp.de/mapbender/php/wms.php?layer_id=61675&REQUEST=GetCapabilities&VERSION=1.1.1&SERVICE=WMS&withChilds=1

WMS overlays currently work in Google Earth Pro, but they do not work in Earth v9.x (web & mobile apps) at this time.
But in Earth for web, you should be able to add a Tile Layer that loads a set of Google Map Tiles (the same tile format as you would use with the Google Maps Platform / Maps API). You need the URL for the tile layer, with the appropriate $[x], $[y] and $[level] variables (note "level" instead of "z"). You'll also want to add the N/S/E/W tile extent coordinates. And I believe it only supports 256x256 tiles at this time. Let us know how you're trying to add a tile layer, and we can try to debug that.

Related

Rendering Tiles by Maperitive while routing with Graphhopper

im new to these softwares and am stuck in a project im working on. My goal is to use modified OSM files and implement a navigation/routing to travel through my custom roads. I have tried graphhopper web and the routing works, but the tiles/map have not changed, it is as if im travelling through invisible roads.
Is there a way to replace it with png tiles created from Maperitive?
A step-by-step guide would be very helpful.

OpenStreetMap Grayscale tiles?

I'm building up experience with web development and my next projects are some web maps. I've looked into Google Maps and Open Street Maps and would like to use OSM for a project as it contains more detailed information of building footprints.
I've tried styling Google Maps which seemed fairly straightforward, but I'm a little lost with OSM. I've got to the point of trying to create my own renders (with TileMill) but this is crashing my system due to the amount of data.
What I essentially need is this (but for the UK);
http://maps.stamen.com/#terrain/12/37.7706/-122.3782
Are there any resources which you can recommend or how easy/ difficult is this to create myself? I think I would need to create the map (with TileMill or similar and then find my own servers to host), or is there an easy way to convert the standard map to Grayscale?
I want to keep it as simple as possible so please any recommendations?
Turning the standard map to grayscale: I might be very late to this but for anyone else running into this question: I found a very easy solution if you're working with HTML and Javascript using OpenLayers and the standard OpenStreetMap-Tile-Layer in color. I took the solution from here: https://openlayers.org/en/latest/examples/semi-transparent-layer.html
I don't know much about web development but this solution worked for me. Upon creating the map, as done in main.js in the example from the link, a class name is defined ('bw')
className: 'bw',
that can be used in index.html to manipulate the style o f it in the part:
<style>
.bw {
filter: grayscale(100%);
}
</style>
My application was altering a pre-built web-map from the qgis2web extension for QGIS. I was able to turn the tile layers from the background map to grayscale so the results would stand out more.
You could use https://github.com/Zverik/leaflet-grayscale to display any tile layer in grayscale. It's a plugin built upon the leaflet map displaying library.

Using OpenStreet map in website with LeafletJS to display heapmap

Is it possible to download OSM or embed OSM and use leafletjs on top of it to display heat map?
I have searched a lot and could not find anything related. I wanted something like this form Google Maps.
https://developers.google.com/maps/documentation/javascript/examples/layer-heatmap
I did find the mapbox but we need to pay them. I need something open source.
Please suggest me.
You can create heatmaps with Leaflet by using the various available plugins:
http://leafletjs.com/plugins.html#heatmaps
However, you'll need some vector data to build a heatmap, not just the tilelayer. If you want to use OpenStreetMap to get your data, try a service like http://overpass-turbo.eu/ to download the things you want in this format.

Google Earth API: Turn off labels

In the following post it is mentioned that you can turn off "individual layers within ge.LAYER_BORDERS" by looking "in the KML file" and getting the layer ID. Anyone know what KML file to look in to find this ID? The reason I ask, is because I would like to turnoff the state/country labels.
Turning off country borders via the KML
Thanks,
Brandon
The API documentation states that "Not all of the layers that are available in the Google Earth desktop client are available with the plugin."
Available layers in Google Earth API are:
LAYER_BORDERS
LAYER_BUILDINGS
LAYER_BUILDINGS_LOW_RESOLUTION
LAYER_ROADS
LAYER_TERRAIN
LAYER_TREES
The LAYER_BORDERS layer shows country and area borders, and place labels for cities, states, countries, oceans, etc. so disabling this layer would remove state/country labels.

How to download OpenStreetMap tiles from CloudMade?

how to download cloudmade map tiles? i have to download tiles with different zoom levels? how save these tiles to database for later loading? any sample code available? any help is appreciated..
There are different options available to you.
First, you can use the Javascript "Web Maps API". This is useful if you are wanting to show the maps on a website. It will download the required tiles and display them appropriately, and give you the interface to pan and zoom the map. See their pages at http://developers.cloudmade.com/projects/show/web-maps-api
Second option is if you want to access the map tiles directly. They call it their HTTP Maps API. You will need to make the calcuations of which tiles to download, how to arrange them etc for your own application. Have a look at http://developers.cloudmade.com/projects/show/tiles
Finally, although you don't mention it in your question, I see the question is tagged with "iphone" and other related things. Perhaps you want to look at their iPhone SDK, which is similar to the Web Maps API. See http://www.developers.cloudmade.com/wiki/iphone-sdk/Examples for examples on how to use it.