views:

56

answers:

1

I've tried to open Google Map application on iphone & android. From iPhone developer reference website I am able to open the native google map from link.

http://maps.google.com/maps?ll=11.5558762589,104.921697935&z=15

However, I have trouble with adding a marker into the map. As in google static map, we can add markers into map. I wonder if we can do the same to google map link.

A: 

The only way I am aware of for doing this is to use the My Maps feature of google maps. You can create a public map in My Maps. Add a marker using the toolbar in the map, then use the link button on the top right to get the URL of your public map.

Not sure how this looks on a mobile device, but I assume that it works.

Edit

Ok. So my assumption was incorrect. I tried this out on Android and iPhone and got the following results:

  • iPhone - Switches out to the maps application (no option to view in the browser), displays the correct region, but no markers.
  • Android - Gives you the option of viewing the URL in the browser or in maps. If you view in the browser, you get the correct region, but no markers.
  • Android - If you view on the maps application, you get the correct region and the markers.

So basically not very useful to you. When I have done this in my mobile web apps (not native), I have used static maps. You give up the dynamic functionality, but you get lots of flexibility with what gets rendered on the map.

Cannonade
This url only work in browser. I think Google Map application on phone doesn't understand the url generated by My Maps feature.
Borey
@Borey Tried out the my maps URL and it seems this is not the right approach for you.
Cannonade