Is there a way to make Google Maps zoom to a certain level based on what is being searched?
For instance, if I am searching for a street, then when I search for the street, google maps would zoom to the street level.
When I am searching for a city, the google maps will zoom to the city level, etc ...
Thanks
Actually, I solved this issue using the following line of code:
map.fitBounds(results[0].geometry.viewport);
I use the above line of code after I get a Status "OK" from geocoding web service. It works fine.
try this below links, here you will have some different maps level information.
https://developers.google.com/maps/documentation/staticmaps/#MapTypes
and
How to set google map custom zoom level dynamically?
Google Maps v3 - limit viewable area and zoom level
it may help you.
Related
If I have an embedded Google Map
$("#map_frame").attr("src", "https://www.google.com/maps/d/embed?mid=1Sdu3m4-YMx_Kc0gWshTNQQgSFys&z=2&ll=44.013922, -88.342259");
Is is possible to set a maximum zoom level?
You can't, google maps api doesn't offer that.
I'm working on Google Map API v3.
But when zoom in with big level zoom at Sea Area. Google Map API return 404 error.
But on https://www.google.com/maps/#28.5698026,-78.3196671,8000m/data=!3m1!1e3
It's still working without 404 Error. Look like they skip loading new tiles if Google Map API return 404? I'm not sure about this.
This is my result:
This is Google Map result:
Thank you for reading my question!
You can use the Maximum Zoom Image Service to get the current maximum zoom Google has for imagery at a given location. You can connect this to the center_changed event to react to the user panning the map.
I wrote a small example on how to do this here:
https://jsfiddle.net/SirWolf/m684t5yp/
There is however no way to have a mix of different zoom levels in one view.
Is there a way to highlight a specified road or street using Google Maps API V3?
Here is an example of what I am trying to get (image from searching a place in google): example
Styled maps does not do what I want since it will apply to all roads. Polylines is an option but finding the coordinates can be a bit of a pain since they are not always complete.
Thanks.
It has already been discussed and I'm afraid you'll have to use polylines.
This might be useful though : Highlighting whole street with some maps API
Can we get Google earth as a Map Type Id in api v3 ..
As this is done in Google maps also..
Check it out here
Can we do it ?
Here is the Google ticket requesting to add the "Earth" button to the map type control.
And a more recent (started last summer) issue specifically asking for MapsGL support. (The more stars this issues gets, clicking the start to the left of the issue title...the faster it gets resolved! So add your vote!)
See this question: Google Earth integrated with Google Maps API v3?
If you want to get the MapTypeId you can do it like:
var mapTypeId = myMap.getMapTypeId();
You can set MapType like:
myMapObject.setMapTypeId(google.maps.MapTypeId.SATELLITE);
I am using google map in my application. I have an application regarding to property sales and purchase for that I have used google map.
But now I have to add Bird's Eye view in it. Since there is no such a concept in google map api, I have decided to use Bing map.
But when I implemented a bing map in it, It affected the functionality of google map.
Means it conflicted the google map.
Can't I use bing map with google map?
Have any Idea?
When you want to use both Google map and Bing map in your application, then you can use different iframe for each.
It will prevent conflicting between each other...
Thanks to brian.behling for their post on Google help forum.
Here is the link for that :
http://www.google.com/support/forum/p/maps/thread?tid=0d28300c9c0f585e&hl=en&fid=0d28300c9c0f585e00048bf69617bd9e
I have answered this question just because anyone else can refer to that easily...
Regards.