Google Maps V3 panTo offset - google-maps-api-3

I am having the same issue as this folk ( link ), trying to offset panTo coordinates. The only solution I've found so far is to use panBy after I've used panTo.
map.panTo( position );
map.panBy(120, -70);
Those familiar with the Google Maps API will know that the issue with this approach is that it will trigger a smooth animation after panTo, to move to panBy. I wonder if there is a better approach?

Related

Here map drawing a route from A to B and displaying it even if the start point is in a building

As you can see the path below isn't totally complete.
I would like the path to be drawn from the start point (and not from the closest point in street).
Does anyone know if there is a way with heremap to draw this part ? Or is this just simple not possible ?
I've looked here without success: https://developer.here.com
I believe what you are looking for is to use the navigation position of the POI instead of the centroid location of the POI. By default the position returned of a place is the "center" of the building location, not the entrance location.
The solution:
Place the marker using Location#getAccessPoints() API
For indoor related usage, please also integrate with the 3d Venue APIs to add indoor routing to the app.

How to get the geofence from Google Map API?

When you type, e.g., "UC Berkeley" into Google map, it shows this:
https://www.google.com/maps/place/University+of+California,+Berkeley
Where the campus is shown in a different and yellowish color.
Apparently Google distinguishes campus from non-campus.
I wonder is there any way I can get the geofence using Map API?
Googling this question returns overwhelming results on how to
create geofence, not on how to get geofence. thx.
I'm working with Google Maps API and unfortunately I'm almost sure that it's not possible. I think Google define the marker color contrasting it with their database.
Then, the best option is managing it yourself, sorry.

Rectangular radar search in Google Places API

I'd like to fetch a set of results based on a rectangular "radar" search. This is possible in the Javascript version by passing a LatLngBounds, but in the non-Javascript version there is only the location and radius options.
How can i do this? Is it even possible?
Thanks
The API is as documented, when a feature isn't supported you may send a feature-request
The only option I see is to request the places by defining a radius that encompasses the desired area and filter the results on your own.

Google Maps API rendering after getting directions issue

I've got the directions to google maps, but how do I render it on the same map (the blue line that goes from one start point to a destination point), my code is a simple html as shown here : http://pastebin.com/60Rz8a5H
I've followed the tut given about v3 API by Google, but with no luck.
I'm a noob in this, so I'm not sure what the problem is.
Thothathri
You've ommitted the initializing of directionsService and DirectionsDisplay

Max initial zIndex for Google Maps V3 markers

I'm building a google maps web site with markers placed onto the map. Some times the markers overlap so I want to be able to interactively bring to the front specific markers.
I can use setZIndex() for this. But I need to know the initial max zindex of all the markers. getZIndex() is no use as it doesnt seem to return anything unless youve already called setZIndex().
It would be tempting to say "just start with a very big number" but I believe Google uses latitude or something to calculate the initial zIndex so the maximum zindex may vary? Making this scheme risky.
Does anyone know what the max initial zIndex will be for N markers in Google Maps V3?
You can use the constant MAX_ZINDEX to ensure that the marker will display on top.
marker.setZIndex(google.maps.Marker.MAX_ZINDEX + 1);
Search the reference of the constant in the Google Maps API V3 Documentation

Resources