how can load gmap link on mobile browser - google-maps

I just created a page to display google map using gmap api and map displaying well on the pc but when i send this link http://ratebol.com/statmap_v3.php to mobile map is not displaying.
Please give me solution to display map on mobile...

On the iPhone you can call either of the methods below. I recommend that you use method #2 since it will work on mobile or non-mobile devices.
Method #1
Austin, Map
Method #2
Austin, Map
This method (#2) is parsed with you click the link. The iPhone and other devices see "maps.google.com" and know to launch the Google Maps application if installed and supported by the device. Otherwise it will open in the browser.

Related

Google maps javascript geolocation api isnt working on mobile devices

I am building a hybrid mobile app using the ionic framework utilizing the google maps javascript api with geolocation. I followed the sample code from their site and the app runs fine when i run on the browser but when i test on my android device, the map loads perfectly but the geolocation does not work at all. Any help/tips?
i things you used ngCordova Plugins
its plugins used for getting current location of device [lat,lng] and its latlng to display in your map.
thanks and good luck.

Open location app from webpage link from ios browser

I wish to make a link in my mobile website that will trigger a location based application (as waze or google maps) to open in location.
the following html code:
go to location
working great with android browsers, but not working with iphone (using safari or chrome)
How can it be done to work with iphone/ipad browsers?
To open google maps on ios you have to use a specific url scheme (specific for each application, if provided) for example the following will call google maps :
comgooglemaps://?daddr=%f,%f&saddr=%f,%f&mrsp=0&ht=it&ftr=0", contactPosition.latitude, contactPosition.longitude, myPosition.latitude, myPosition.longitude
and this wil open waze :
waze://?ll=37.331689,-122.030731&navigate=yes
In both cases to have this working the user, obviously, should have the apps installed.

Open Google Maps or Apple Maps in iPhone or Other Mobile Device via Browser

I have links that go to Google Maps, but now since Apple updated to their own service my iPhone goes to the Google Maps website. Is there a way in HTML to show the Apple Maps link, when it's iOS6, and show the Google Maps link for all other devices. I am using ASP.NET MVC.
The solution is even easier than that and won't require any conditional statements:
When clicked from an iOS6 device, links to
maps.apple.com/maps?q=cupertino are opened in Apple's native
mapping application.
But on other mobile devices and computers, it redirects to Google
Maps (at maps.google.com/maps?q=cupertino) instead.
So at this point, all you need to do is include the Apple Maps link and it should work as expected on non-iOS devices.
I mentioned this in a recent post that also touches on whether the same parameters can be used.

jquery mobile + Google Maps + Geolocation

I'm creating mobile version of company site and I wonder if there is possible to make navigation snippet that will be part of page, opened with mobile browser such as WebKit or Safari (Android, Windows, iOS devices) and will display route from current to fixed place (compay office)?
Something like navigation. All with jquery mobile + Google Maps API and...? maybe is something else needed?
Some advises?
well you can use the GOOGLE MAPS API V3. check the Google Code Playground.
You can also check Docs APIV3
You'll also need to make use of Google Maps Direction Service
You can get your current location using html5 directly. Geolocation in HTML5.
That should definitely work with jQuery Mobile and the Google Maps API. It has been done before by other users. A great place to look for more information on using the two together is the jQuery Mobile forum - http://forum.jquery.com/jquery-mobile

How to link to native Google Maps iOS app from mobile Safari browser

I read somewhere (I've forgotten where) that it is now possible to link to the native Google Maps iOS app from the mobile Safari browser by using the maps:// protocol and that the app will now allow the importation of a KML file. I have tried several different linking URLs but I can't seem to get any of them to work. Does anyone know the correct format of this URL using the maps:// protocol with a KML file? Any help will be greatly appreciated!
As far as I see there is no such option.
Apple Developer Documentation on Map Links
You can start the Google Maps iOS native app by just redirecting to the Google Maps website:
Cupertino
Regarding the KML the native app will not pick it up (from the link above):
The rules for creating a valid map link are as follows: ...
A parameter cannot be q=* if the value is a URL (so KML is not picked up). ...
Apple URL Scheme Reference: Map Links
http://maps.apple.com/?q=cupertino
Note: since iOS 6, you have to convert all map requests from "maps.google.com" to "maps.apple.com" for the iOS map to activate.
Starting in iOs 6, you should link via HTTP to maps.apple.com, such as:
http://maps.apple.com/?daddr=San+Francisco,+CA&saddr=cupertino
If accessed from a non-iOs device, that link currently redirects to the equivalent Google Maps search. In the future, Apple might do a web-based map viewer of their own.
See full documentation here:
http://developer.apple.com/library/ios/#featuredarticles/iPhoneURLScheme_Reference/Articles/MapLinks.html