Issues displaying embedded Google map on Android and iOS - android

I created a 'My Map' in google and embedded it into my wordpress site.
The map displays fine on desktop. On android it displays, but a box with all the locations hides most of the map and it doesn't seem to be responsive. On an iphone the map simply doesn't display.
Is there any code I need to add to resolve this? Thanks

you need to look on to this (https://developers.google.com/maps/documentation/android/). It provides all the steps you need setup google map on android. For iphone, i didn't familiar with that.

Related

how can i download a area map and use offline in android application

I am developing a android app. and I want a particular area map which I can add in my app and use it offline navigation.
How can it be possible?
Is there any code for this?
http://lifehacker.com/5819742/google-maps-for-android-labs-add-offline-caching-scale-and-measuring-tools
this link is not good.
or if it possible then please help me.

PhoneGap and map

I have problem with map which deploy on phoneGap.
After I read many tutorial about PhoneGap I succeed to install this cross platform tool, but I can not use map on the PhoneGap. I read some example about use map on the PhoneGap via js but none of them donot work for me!
I want to install my application on Android platform.
Do you have any hint or example regards to PhoneGap and map?
It depends what behavior you expect from map plugin/library. For me, this jQuery map library works the same way as on the web. It offers location picking with the marker, searching, displaying location based on the gps or location name.

Using OSM to develope android app

I have just started programming in JAVA and Android. I have been able to make an android app in which i store markers in a MySql database which i fetch using PHP and display them in a map overlay. Also i have allowed adding markers to the database as well. I am doing all this using Google Maps API and i would also like to do the same using Open Street Map. I would be thankful if anybody gave me some hints on how to do this or some links that would be useful to me. Thank you in Advance.
Take a look at Mapsforge (http://code.google.com/p/mapsforge/). It is designed to be a near drop-in replacement to Google Maps. It's not completely trivial, but they have a sample app in the source code, which shows the basic moves to accomplish some common results.
Another option is Osmdroid (http://code.google.com/p/osmdroid/). The main difference being that with Mapsforge you download a map file and render it on the device, so maps will be available even without a data connection. Osmdroid downloads tiles from OSM, much like Google Maps API does from Google Maps.

How would I make Google web map android native map?

I was developing an Android app under the jQuery mobile framework using phoneGap technology. The app included Google maps.
The problem is, it is too slow .... really slow.. I tested it on several android devices and found the same issue everywhere.
I'd like for maps to run like they do on the native Android Google Maps (default). Is this a common issue using the mentioned framework, or perhaps something I'm doing wrong?
One thing you can do is fire an Intent to make the native Maps application take care of your mapping needs, if that works for you.
For example, if you want to show the user a map of a given address, you can fire a android.action.VIEW Intent, with a URI like:
geo:0,0?q=1234+foo+bar+qux+avenue
More info on available system intents:
http://developer.android.com/guide/appendix/g-app-intents.html
You should take a look at this:
https://github.com/phonegap/phonegap-plugins/tree/master/Android/WebIntent

choosing right approch to implement google map in android

I am planning to create an application in android which has following features
Show Source to Destination Route
Show Reverse Route
Show Traffic Data
Show alternate Route
Store user data
apart from that i want to use some android native controls such as image button , textbox , dialog over the map.
Now after reviewing this link i am bit confuse in choosing the approach among
Google Maps API V3 in the Browser
Google Maps API V3 in a Browser Embedded in a Native Application
Native Google Maps APIs
Can anyone please help me out in choosing the right approach ?
Well, there's no simple answer to that. Every approach has its pros and cons.
Now let me state few insights that might help you in your decision (based on the idea that you want the map as a part of a native android app, not just a html5 app - correct me if I'm wrong):
You need to store user data.
If you want to store the data in the app, then I guess you can leave out the first solution. It would be very difficult (or even impossible) for you to properly maintain your data with map in a browser. The best way to maintain data is then to directly communicate with a server from the webpage and store data on the server (so you need a server backend). You can also pass some data from the webpage to an activity by registering an intent filter for your own url schema.
You don't have such problems using approach 2 and 3, where you can use android code (if you are embedding the map in a webview you can access android code by binding javascript code to android code).
You want to use android native controls.
Now you can also leave out the 1st solution, you are using browser controls there. In the 2nd solution, you can use both (the map needn't fill the entire screen and you can also place controls over the webview).
Google Maps API v3 is frequently updated and currently much more comfortable than native API. Native API wasn't much updated (not sure if it was updated at all) since Android 1.6.
From these 3 points I would prefer embedding Google Maps API V3 in a webview. Of course, I might have missed some important features of your app.

Categories

Resources