Save programmatically (via API) created map to Google Drive (.gmap) - google-maps-android-api-2

I've programmatically created a google map in Android using the Google Map API / MapFragment. I'd like to be able to save this map on my Google Drive (just like you would if you used the native Google Maps android App or the web site - [either of these would create a .gmap link file linking to some data somewhere). Does anyone know how to do this? Basically a "Save My Map to Google Drive" option.
Note: I don't want to save a screen shot.

Related

How to show directions in MapComponent in Codenameone

I have been able to Display a map with corodinates using Codenameone and Netbeans, now i want to add 2 points and map a direction/route similar to google maps directions.
Does anyone have a sample code for this using the MapComponent with google maps api?
Mike
That's not supported by maps within your application, however you can launch the devices turn by turn navigation app using the Display.openNativeNavigationApp(lat,lon) API.

How to launch Google Maps on iPhone via web link?

I am building a site that will have address links as well as image of a map - both of which have a link to Google Maps.
The problem is that when I click on these links using my iPhone - or any address link that shows up in an email, the result is that either the native Apple Maps app opens or the Google Maps in the browser. I want for the native Google Maps app to open every time, and ideally for every user (whose iPhone I have no control of).
If I use the Chrome app for iPhone, then there's a little trick to do this:
http://www.redmondpie.com/how-to-set-google-maps-for-iphone-default-app-for-opening-map-links/
But the reality is that the trick above will not open the Google Maps app. It will open the web version of Google Maps inside the Chrome app. Then an icon shows up at the bottom asking if you want to open the native app instead. This is better than nothing, but far from ideal. I appreciate any help. Thank you. BTW, I'd like to do this without jailbreaking the iPhone - I'm looking for a solution that will work with other people's iPhones.
You can use apple's interface which is a bit more intelligent when using different browsers and devices:
http://maps.apple.com/?q=51.507269,-0.127695
Clicking the above url on the following devices:
iPhone|iPad:
Opens Apple maps app
Android:
Gives you a choice to open in either Google Maps App or Google maps website
Windows Phone:
Opens Google maps mobile website
Windows 8 Desktop:
Opens Google maps website
Apple OS Desktop:
Opens the new maps app (Mavericks)!!
For more info see:
Apple URL Scheme Reference
To open Google native app you need to write:
[[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:#"comgooglemaps://"]];
Example :
comgooglemaps://?q=Pizza&center=37.759748,-122.427135
I just tested this and it worked in pulling up Google Maps instead of the default Apple Maps application.
Testing Maps
However, after deleting the Google Maps app for iOS, the link fails to open anything because that schema is no longer available and doesn't fallback to a generic maps link... almost seems like you would need to provide two links for Google Maps for iPhone and another generic Apple Map link...
Take a look at this.
It works on every device (for ios / android, it will launch google maps app else browser).
For other devices, it will launch browser.
Simple use case would be:
Construct universal map URI (with encoded params)
Use this URL like -
window.open(mapUrl, '_system');
More info for window.open here
My use case required to open existing in app map navigation into some another dedicated maps app (preferably google maps app) for ios and android devices.
I use ionic v1 + cordova for building native apps. Not sure if this is perfect for your use case but hope this helps.

How to drop a pin on Google Maps iPhone app via web link?

I used to just be able to have a link to a coordinate on Google Maps, like https://maps.google.com/maps?q=35.7491455078125,139.382995605469
but now that Apple kicked out the original Maps app, and Google has re-launched another one, links like that no longer drop a pin on the maps of iOS users.
Is there a way to drop a pin on a visitor's Google Maps app with the click of a link?
Sounds like the official Maps URLs would work for you. In your example, this should work (and across platforms, too!):
https://www.google.com/maps/search/?api=1&query=35.7491455078125,139.382995605469
You can read the full documentation at https://developers.google.com/maps/documentation/urls/guide
Replace http://maps.google.com with http://maps.apple.com, hopefully that works!

Use OpenStreet Maps in my blackberry application

I would like to use openstreet maps in my blackberry application. The idea is the application fetches the current location through GPS/cell tower. The user has an option to click on a button and load the map within the application (same display) below. I have researched a little and BlackBerry maps seem to be limited and Google Maps requires installing a seperate API. I am hoping to fetch and load the maps through http connection (something like a webservice). Can somebody please guide?
I use the nutiteq library its usefull and it implements the openstreet maps in my blackberry. Here are some links quick start nutiteq RIM BlackBerry Mapping API SDK

google earth api for iphone

I need google earth api for my iPhone application can somebody just provide idea or link?
Sorry, there is no public API for the Google Earth iphone/ipad application. http://www.google.com/mobile/earth/
You can however load custom kml into the application on both devices allowing for overlays, models, tours, etc by using 'My Maps' in a maps.google.com account.
To get your KML into IOS Google Earth
Go to Google Maps http://maps.google.com/
Choose "My Maps"
Choose "make a new map"
Click on "import".
Choose the kml/kmz file you wish to add.
On the iphone/ipad Google Earth Application choose "Layers"
Choose "My Maps".
Choose the map you created in step 2
Your imported kml/kmz data will now show in the IOS application just like in the full Google Earth Client.