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

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.

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

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.

How to search only within the displayed map with google maps?

Airbnb has a feature on their main search page that only the results in the map are shown. Is it something that is supported by the google maps api ?
I am using the gem gmaps4rails. I havn't found this in neither in the google maps api not in the gem.
Basically what I want is the bounds of the map so that I know what constraints to search with, so that the results fit in the map.
How do you think it can be done ?
The Map-class has a method called getBounds().

rendering complicated images from google maps

Is there any way to capture the image from a complicated Google Maps with some customize overlays like heat gradient. See figures:
Google static map API can only generate static maps(images) with simple polylines or markers, in my situation this is apparently not enough, I want user to capture this kind of images and share it in there twitter fb of g+
see Google Maps image?, it is a similar question. But not so useful in my situation
It's not allowed. See here:
https://developers.google.com/maps/faq#tos_screenshots
Use of Google Maps imagery in printed materials and offline media is
subject to the Permission Guidelines published at:
http://www.google.com/permissions/geoguidelines.html
you can request permission, but I don't think it's easy to obtain, unless you are a paying business customer.

Switch between google maps and google earth

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 :-)

Resources