I am using Google Maps API version 2, now I would like to remove address bar from Street View. I have not found a solution to remove this address bar despite significant research. Street View is loading in flash version (I have checked this in Firebug), so I can't play any CSS or JavaScript trick.
Please help me to remove this box in Google Maps v2. I couldn't update it in Google Maps v3
you can't remove it in google map api version 2; you should have to update it in google map v3; how could you change in flash if they didn't provide any such functionality like that
Related
I need to remove all the places around my marker in Google Maps Javascript API. Is there any way to do it? I didn't find any useful information.
Here I show some places from Buenos Aires (screen shot from Google Maps, not from my JS implementation). All those brown markers must be gone.
I think I understand what you are asking and to me it seems like you might want to check out this previously resolved post.
hide local listings from google maps api
This will help you remove the local listings from your google map.
Is it still a feature to render road on google street view?
Most articles that mention it are form 2008-2009, so i assume they removed it in new maps?
Is there way to programmatically show directions blue line on street view panorama?
After looking at Google's Documentation, Polyline/Direction is not supported.
You can only add Markers, InfoWindows and custom OverlayView
I am migrating to Google maps V3 from V2. I need to add a G_MAP_MARKER_MOUSE_TARGET_PANE pane in the maps. following is the V2 code:
mapPanel = myMap.GMap.getPane(G_MAP_MARKER_MOUSE_TARGET_PANE);
AddItem(mapPanel);
I need the V3 code to get the MOUSE_TARGET_PANE. Can anyone help me?
I think you're looking for google.maps.MapPanes.overlayMouseTarget.
Here's a list of all the V3 Maps API overlay panes.
Naturally, the V3 overlays work a bit differently from the V2 ones. Here's a V3 example.
I'm switching one of my projects over to use googles maps api v3 from v2.
In v2 I had a div appended to the map pane with the following code:
$("#marker_popup").appendTo(map.getPane(G_MAP_FLOAT_SHADOW_PANE));
Is there any simple way to do that with v3? I've been searching around and I've found some things relating to implementing draw and onAdd, but I figure there has to be an easier way to do it than that.
Have a look at the answer to this question (and the corresponding v3 API documentation): google maps v3 translate map.getPane(G_MAP_FLOAT_SHADOW_PANE)
I made a demo using v2, and now I want to use v3.
But I found out that v3 has not as many methods as v2, e.g.:
map.enableGoogleBar();
map.enableScrollWheelZoom();
polyline.enableDrawing()
So, is v3 powerful enough to replace v2 ???
N.B. Three years later there is obviously no reason not to use v3 of the API. Google Maps v2 is now deprecated.
Google Maps v3 is the next iteration of the API and my initial reaction would be to suggest that you use it. However, v3 is still a Google Labs product and is not as mature as the v2 API.
The initial focus for v3 was optimized performance and user experience on mobile platforms and ,as a result, some of the v2 features haven't made it into the v3 library (this gap is getting smaller). However, the performance improvements that have been made in v3 are equally applicable on the desktop, so you are faced with a performance/feature set trade off.
If there is a specific feature that is in v2 and not v3 and you aren't developing for a mobile device (and it sounds like you aren't), then you may want to use v2 and migrate to v3 once your feature is available.
In addition to Cannonade's answer, note that the scroll wheel feature can be enabled and disabled in v3, and even polygon editing is possible:
How to disable mouse scroll-wheel scaling with Google Maps API
Google Maps v3 Samples: Polygon Edit
I couldn't find any reference for the Google Bar however.