How to display blue arrow for direction with Google Maps SDK in iOS? - google-maps

When launching Google Maps in iOS, the App will display a blue dot for my location and a blue arrow for direction I faced.
Is it possible to display the blue arrow with Google Maps SDK in iOS ?
If SDK does not provide this function, is there any way to implement it by myself ?

I've spent a good amount of time researching this and the simple answer is no. I've combed through every page of the google maps iOS sdk documentation and have found nothing on user location direction. I have tried laying an arrow image on top of the mapView, but the problem is that the user dot does not always stay in the exact center, and there is no way to reference the location of the dot within the mapView. It seems that this is one feature that Google is keeping to themselves for some reason :(

Related

Draggable overlay on Google Maps in a browser

I have developed an iOS application that allows the user to drag a GMSOverlay subclass around in the Google Maps SDK. The overlay scales with the map as the user zooms in and out.
I want to replicate this in the browser but can't find examples of how to do it. Today I happened to see a web page where this was done.
Draggable overlay example
If anyone has any ideas about how this is achieved (generally speaking - I will research from there) it would be appreciated!
The Google Maps API zoom_changed event and getZoom() method will let you track changes in zoom, which can be used to scale DOM elements.

Create html link that starts the navigation on mobile phone using native app

I want to add a link on my website to start a navigation to the specific coordinates or to show some icon on that coordinates, so you can see your position and the position you need with a big zoom (it will be used when the person is near it). I tried:
https://www.google.com/maps/preview/#44.13547940000001,9.6813342,21z
it openes the map with a center on my coordinates, but I don't have an icon to understand where is that place... I cannot navigate to it. I tried without (or with different) zoom too.
geo:44.13547940000001,9.6813342?z=8
geo:44.13547940000001,9.6813342?daddr=(44.13547940000001,9.6813342)
This one opens Google Earth (if I uninstall it - it doesn't work)! So I cannot navigate and I don't see where is it, the position in in the center but...
Is there a possibility to open google maps / app with an icon on the coordinates I want to share. Or something like that?
Here is the link:
https://maps.google.com/maps?ll=45.464167,9.191389&q=45.464167,9.191389&hl=en&t=h&z=18
It openes google app and points a mark.

how to display the street view area in the google map

I have implemented the street view of the google map using the google javascript api v3 and i want to show the blue shadow area in google map according to their corresponding street view display.
Can anyone help me out to resolve this problem.
The "StreetviewOverlay" is not available in v3. If you would like it, you can star (vote for) this Enhancement request
(doesn't seem to be a lot of interest in it, only 9 stars so far)

Google Maps streetview shows awesome panoramio photos in China - can we do this?

If you have a look at Google Maps and search for some place in China like Tiananmen Square for example, then drag out the little streetview man, he does not go on the roads like normal... instead there is a scattering of little blue dots where he can stand and get a view.
This is similar to a panoramio layer but much slicker, and it lets you click between photos taken within the same field of view.
This is all great, except when I turn on the streetview control with Google maps API v3 on the website I'm developing (which is about tourist destinations in China), it lets you drag the man around but then he turns grey like there is no data. There are no blue dots and he can't see anything.
I'm wondering if there is a way to turn on that same streetview panoramio mode that they have in maps.google.com? Possibly they won't let us have access to that yet....
I could add a normal panoramio layer but I am really wanting to have that really nice blue dot thing happening.
Pretty sure no. v3 of the API implements streetview with HTML5/canvas etc - ie native in the browser.
That 'lookaround' viewer, is implemented in flash.
I suppose you could try v2 of the API, that still uses a flash client.
... otherwise just add a request to the Google Maps API issue tracker - it tracks suggestions.

How the blue dot in google maps is centered at the current location?

i have several questions about the blue dot that appears when i launch the google maps in the browser. I tried implementing the same by using the blue dot image as the icon property of the marker and changing the position of the marker in accordance with the current location. So when i do this its actually like the maps are refreshing where as in the google maps application the blue dot is moving smoothly(and that's very awesome). My question
is whether blue dot in google maps is implemented as a marker which changes its
position or is it an inbuilt property of google maps which we can use.
i am using google maps API v3 to do this.
Thanks for any information.
It's a marker with custom icon which is placed with HTML 5 position provided by most recent browsers.
When the position change, you can change marker position.
http://www.kmcgraphics.com/google/