The slope of the Google Maps Javascript API differs from that at www.google.com/maps

I noticed that some places open at google.com/maps look completely different from the same view generated using the Google Maps Javascript API 3 using tilt: 45 .

In the example of the center of the map lat : 39.073282988412444 lng : -77.15641707252614

So, what does it look like in google.com/maps using hybrid and 3d mode (not sure if it matches tilt: "45" ):

enter image description here

And here is what it looks like on my website using the Google Maps Javascript API 3 in hybrid tilt: 45 mode:

enter image description here

As you can see, the quality of poor use when using the API. Google Maps uses something like 3D rendering, which is not available through the API.

So my question . Does this mean that we (API clients) cannot achieve the same quality as on google.com/maps ? Because I believe that everyone thinks that he can embed the same map as on google.com/maps via the API, but in fact it seems that you are getting a better service.

PS: I noticed that google.com/maps probably uses WebGL:

enter image description here

+8
javascript google-maps google-maps-api-3
source share
2 answers

The most important point is that the Google Maps JavaScript API and the Google Maps consumer application (maps.google.com) are different products that are managed by different teams on Google. You should not expect them to work exactly the same in all situations. As far as I know, the API team seeks to maximize the use of functionality that is as close as possible to the consumer application, but sometimes they need some time to be implemented on the API side.

Referring to MapsGL support in the Google Maps JavaScript JavaScript API, there is a feature request in the Google search tracker that currently has 130 stars. Please review this feature request:

https://issuetracker.google.com/issues/35821626

I would like to propose in the main role a feature request to add my vote, I hope Google will take into account the number of people who have filmed this topic and implemented it.

+1
source share

As I said, in the " Enable new GL rendering in the Google Maps API v3? " WebGL was not available in 2011.
In 2014, the web browser API Release Notes page for web maps showed this question that WebGL was active.

But the Google Maps API Documentation shows a few APIs and an API collector

From this API collector, we see that 3D functions are only available in the Google Maps API for Android and the Google Maps SDK for iOS .
It is not mentioned / available in the Google Maps JavaScript API or Google Maps Embed API used to embed maps in a web page.
However, the last API shows a view mode that displays buildings in three dimensions: Google Maps I / O mode / View mode : maybe this is enough for your business. (IE using the "Embed API", not the "Javascript API")

integrated map with 3D elements

0
source share

All Articles