Switch between google maps and google earth - asp.net

Using a KML file I can show Google Earth in website. Now, can anyone give me idea to implement following specification?
I need following buttons above the Google Earth plugin
a. User must be able to switch between map and earth.
b. User should be able to save and download the map or earth as image
So we have to use same KML file (that is used for google earth) to show google map. After that google earth or the google maps have to be saved as image.

As per i know,same kml will not work for google maps and google earth.Becuase, Google Earth kml is some what different to Google Maps kml.In Google Earth kml we need to declare <LookAt> that is not supported by Google Maps.Please have a look into the following url for Google Earth kml:
http://code.google.com/apis/kml/documentation/kml_tut.html
and the following url explains google maps kml:
http://econym.org.uk/gmap/kml.htm
Here we have to observe one more thing like we have <coordinates> in both cases.But ,the Projection is different in both cases.If we use same lat and lon for Google Earth and Google Maps we cannot able to get the correct result.So,you can use both kml but while passing coordinates from Google maps to Google earth,need to change the lat,lon projections and vice versa.
Hope this helps you :-)

Related

Adding the localizing pin in Google Maps

I understood that, in order to visualize an attraction or a commercial venue in Google Maps you use Maps JavaScript API. However this would be for maps that would be displayed on websites or mobile devices only?
How would it be possible to map and localize a feature in Google Maps, as these are accessed from Google website? I mean, is it possible to map and visualize something that would be accessible and visible to anyone opening Google Maps? A special request should be made to Google?
Thanks a lot

How to show map with 3D buildings with google maps js api

I am building a web-page using Google maps js api. I need the map type which shows all 3D buildings view provided by Google earth, just like the Google's map application where you can see all 3D buildings in the earth view.
I don't want to use the Google earth API because it's deprecated.
Any way to achieve that?
Google seems to be silent about 3D features in Javascript API. Closest I can get to this are Styled Maps but nowhere does it specifically indicate 3D. Only Android implementations are available as of now.
At this moment, the javascript API generates 3d buildings in map-view, with no option to turn this off.
The google maps website shows 2d buildings, which includes housenumbers. This information seems more accurate than the 3d-buildings map-view. But the options to toggle between various map layers is a long standing omission in the javascript API.

Can you change the view in Google Earth API from "Earth" to "Map" like in Google Maps?

I am developing a web page which uses the Google Earth plugin. I would like to display the map like in the first image with the "Earth" and "Satellite/Map" view options like you can in Google Maps, or at least be able to just show the map in "Satellite/Map" view:
Currently this is what the view looks like:
Is this possible?
Yes, you can use the Google Maps V3 to switch between Google Maps and the Google Earth Plug-in.
The google-maps-utility-library-v3 can be used to make this easier.
You can see a working example here.
Alternatively you can simulate a reasonable map view buy just turning of the terrain and photo imagery and turning on the borders and roads layers in the Earth Plug-in. If you then lock this view to 'plan' it works well.

Errors rendering kmz in V3

I'm working on a project for flood mapping and have a bunch of kmz files which when viewed in Google Earth render fine, but not when displayed in Google Maps api v3.
The kmz holds polygons showing flood stages over a lake, and in Google Earth islands on the lake are "holes" in the polygons since they never flood. When displaying the kmz in google maps though, the holes become filled in.
Not sure what's going on here, can anyone help? The maps were created using ArcMap tools from shapefiles.
Here's a link to one of them: http://www.frontiernet.net/~wfobtv/inundation/combined/103.kmz
Copy the url into google maps to see what I mean.
Thanks!

Google maps api kml not getting all data

I'm trying to do on mouseover instead of on mouse click for google map using google maps api
succeeded in it, but here is the query
it is working fine here: http://code.nebtron.com/o/
however, the popups on mouseover don't have all the data like they have on maps.google.com
obviously kml isn't exporting all of it,
I want the popup cards to be exactly the same as on google map:
http://maps.google.com/maps/ms?msa=0&msid=210314513202687277761.0004add759729f225c40c&hl=en&ie=UTF8&t=m&vpsrc=0&ll=53.758936,-2.358289&spn=6.777111,7.027922&source=embed
Google Maps supports the KML elements mentioned in the link below. Maybe your kml file has some elements not supported.
Moreover:
The KML parser generally silently ignores XML tags it does not understand.
So do not expect any errors.
KML in Google Maps

Resources