Is there a way using static maps that google maps can display directions drawn on the image as with the javascript API. That is a way of loading the static map image with the route to be taken drawn on them.
Any ideas?
Marvellous
The static maps API only supports markers, not directions. You've have to use the normal Javascript API. You could lock down the zoom/drag/scroll options etc so for all intents and purposes it could appear static to the user.
Although in fact you can draw polylines, just not the proper directions:
http://code.google.com/apis/maps/documentation/staticmaps/#Paths
Here's an example:
<img src="https://maps.googleapis.com/maps/api/staticmap?size=400x400&path=color:0xff0000ff|weight:5|51.511333,-0.119355|51.506205,-0.114462|51.507774,-0.10861|51.507801,-0.107569|51.5071,-0.107344|51.507207,-0.105016|51.507507,-0.104404|51.510999,-0.104297">
Related
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.
I'm mocking up an HTML5 web app and I need to incorporate a map with specific locations marked off with custom banners. For the sake of the mockup, I just need to have the default location markers replaced with some sort of graphic of my choosing. How would I do this?
The Maps API documentation has a custom marker icon example (reference). You can use it as a starting point for your own code.
I'm looking for a way to add images to the Google Map interface itself, not fixed on a point on the geographical map but on the Google Maps "window". Something to display Map Legends on the map itself.
I've been looking through the net but can't seem to find a way to do this. As you can tell I don't really know what this is called also, so that may be the reason why I ca
You have to open infowindow on map and put image in it.
Try with this answer : google maps api v3 - how to display image thumbnails inside bubble?
I have built a custom Google Map and When the page loads I would like a 'splash screen' to appear over the map inside the map container (this would be an image with some instructions), which could then either be toggled off or would disappear after a set time.
I know that I can do this using CSS/JQuery to create a layer over the map container, but is it possible to do this using the map API?
You could use overlays or a custom infowindow (infobox).
I would suggest overlays. Their existence is for displaying components
over the map. Infowindow would suffice too, but their role is for displaying something
in relation to a specific spot on the map.
See this for more
I am wondering if i am allowed to add an image overlay to a static Google Street View image.
The idea behind this question is adding a person/object to the street view image in an android application (and displaying it) without further processing of the outcome.
Would this violate "10.1.3 a)" of the Google Maps/Google Earth APIs Terms of Service?
I am not really sure about that, because "(i) creating server-side modification of map tiles" is listed as a forbidden example, but I only want to do add a client-based overlay without modifying the Street View Image as itself.
Thanks for your help!
Did you read this section? https://developers.google.com/maps/documentation/javascript/streetview#StreetViewOverlays
It seems that the Street View API supports overlays.
If you read the link from Vitor, it says that:
"Currently, the types of overlays which are supported on Street View
panoramas are limited to Markers, InfoWindows and custom OverlayViews.
"
So unless you implement your own custom overlayview, image overlays (like a ground overlay) aren't supported