Google directions on OpenLayers - google-maps

I'm a big fan of OpenLayers. The only thing i'm missing here are directions.
Since google maps supports directions, I want to integrate these with OpenLayers.
Is it possible to use the google maps api to get directions from point A to point B (support for waypoints?) and then display on my map (as an extra vector layer?)?

Google Maps doesn't support directions. and you have to use Google Directions API to get you direction instructions. as for displaying the directions on google maps, it's can be done. head to this post to
first post
or:
second post
to read more.

Related

Google Map API tilt is not working in given LatLng

I am using leaflet.google.js for google map. I have done tilt:45 in initMapObject function. On map this is working for some other location(latlang) but not tilt with my require location(40.4134741, -74.3057727).
I have checked same latlang with maps.google.com and It is tilt(giving button 2D/3D).
Please review my code with link.
"http://jsfiddle.net/fJFWN/211/"
Please Help me I need tilt view in my given location.
Thanks
The official Google Maps JavaScript API documentation says
The Google Maps JavaScript API supports special 45° imagery for certain locations. This high-resolution imagery provides perspective views towards each of the cardinal direction (North, South, East, West). These images are available at higher zoom levels for supported map types.
https://developers.google.com/maps/documentation/javascript/maptypes#45DegreeImagery
I understand aerial imagery is not available everywhere in JavaScript API, it looks like it's not available at 40.4134741, -74.3057727.
Also note that the Google Maps website is a different product managed by different team at Google, so you cannot expect exactly the same behavior in Maps JavaScript API and maps.google.com.
I hope this explains your doubt.

How can I make bend in google maps polyline?

Is it possible to make a bend in Google maps polyline.
Sample Example is here
I want to make a line over the railway and not a straight line.
Is it feasible?
Yes of course, you only have to look at the documentation of google maps, there are many examples, you just have to replace the latitude and longitude Google Maps API

Google Maps API V3 - Highlight a single road/street

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

Google Earth integrated with Google Maps API v3?

I'm trying to integrate Google Earth into Google Maps, and I saw it was possible in v2.
But I can't find any doc about how to do so with v3.
Unfortunately, this is not yet implemented in Google Maps API v3, see the corresponding ticket.
Please note, the more stars a ticket has, the sooner it will be taken care of.
Just a note that there is now an unofficial library at http://code.google.com/p/google-maps-utility-library-v3/ (trunk at http://google-maps-utility-library-v3.googlecode.com/svn/trunk/googleearth/)
Here's my offering: https://github.com/myshen/google-maps-v3-earth-map-type.
It's not from Google but it does do a little more out of the box:
Links polygons, rectangles, circles, kml, in addition to markers.
Links mouse events (click, drag, over, out).
I've been trying to port [jlivni]'s code to OpenLayers and have setup a GitHub project for that (1).
Now you can see a demo with Google Maps on one side and Google Earth on the other side:
http://ziglionz.github.com/GoogleEarth-for-OpenLayers/ol.html
Currently the library supports only unstyled placemarks but it shouldn't be too hard to support other features.
The demo also sports a timeline for OpenLayers, that's part of another project (2).

How do I turn off/hide landmarks on googlemaps

I am using the google maps api v2 to build attraction guide mashup. Currently it shows some landmarks on the tiles it returns. I notice some of the geocoding of certain attractions is off.
Is there a way I can tell google to send back map tiles with no land marks? I cant seem to find any info on the api docs about it.
As of Google Maps API v3, you can use the Google Maps API Styled Map Wizard to do exactly this.
There is no way to request custom tiles from Google. Your only option is to choose from the available map types, or to generate your own tiles.
The Terrain map (G_PHYSICAL_MAP) might be more acceptable for you.