How to add kml file into google_maps_flutter? - json

In GoogleMaps flutter, there isn't any support for KML file integration
I found this workaround https://brunozaranza.medium.com/google-maps-flutter-com-kml-e750c8c5b793
But it is only for android
Can anyone please tell me how to add KML file into google maps flutter for both android and iOS ?

Maybe not the ideal solution but there are native options for handling kml with iOS devices. Take a look at this thread Good KML library on iOS

Related

react-native-maps: gray map after apk build

I have a RN app that uses react-native-maps. I was able to successfully render the Map in the Android and iOS Emulators, but when I build it out (using Expo), the app works but the Map renders as a Gray screen with the Google logo on the bottom left-hand corner.
I have an API key and have enabled all of the essential APIs in the
Google Developer Console.
I have only tested this on a physical Android device.
So,
What am I missing?
Should I consider using Mapbox instead?
EDIT:
I did not add anything to a build.gradle or anything of the sort from the Android Studio end; just front-end stuff. Is this required?
I face same problem of greyed map, when use LocationView of react-native-location-view. Greyed Map resolved by Enable Maps SDK for Android. Follow as shown in
Enable Maps SDK for Android in your developer console
https://console.developers.google.com

Xamarin.forms maps offline

I want to use xamarin.forms maps offline with google maps.
I know how to do it in xamarin for android - using MapTypeNone, and loading the my own TileProvider.
Is there a way to do it also in xamarin.forms instead of using different code for android and IOS ?
You can use a Dependency service/Custom Renderer to separate that code, not sure if it is possible to use Google Maps but there are other options like:
https://components.xamarin.com/view/nutiteqmapssdk
and
iOS and Basic offline app
Hope this helps.

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.

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

Make an URL point to google maps app on Nokia (symbian)

The iPhone has a functionality that when a google maps URL is typed into (or linked) the mobile browser it will open the Google Maps app instead of displaying it in the mobile browser.
Now I'm wondering if that same functionality exists for say a Nokia (Symbian) phone? Is there a way to set up the link to open the Google maps app on the Symbian phone?
You might want to look at this related stackoverflow question.
The Nokia Ovi Store does something similar, it pops up the store when you access a URL through the browser. I don't know how they do it though.
Not that straightforward or helpful in all cases, but at least in the latest Symbian^3, if you have Google Maps installed, pointing the browser to a .kml file (served with correct MIME type) seems to open the file in Google Maps application automatically.