google-maps

Google Map in Flutter App is not showing up

淺唱寂寞╮ 提交于 2021-01-29 08:36:38
问题 I have a problem in intergrating a simple GoogleMap in my Flutter App. I correctly inserted the API Key in my Manifest file and inserted the library in the app. But the emulator is just showing a blank page. I am doing nothing special until now; just trying to create a GoogleMap. This is the Code i am using in the App: return Stack( children: <Widget>[ GoogleMap(initialCameraPosition: CameraPosition(target: LatLng(-33.870840,151.206286), zoom: 12) ) ], ); What the emulator is showing: The

Allow BottomSheet to slide up after threshold is reached on an area outside

谁说我不能喝 提交于 2021-01-29 07:52:10
问题 I am trying to replicate a behavior that the current Google Maps has which allows the bottom sheet to be revealed when sliding up from the bottom bar. Notice in the recording below that I first tap on one of the buttons at the bottom bar and then slide up, which in turn reveals the sheet behind it. I cannot find anywhere explained how something like this can be achieved. I tried exploring the BottomSheetBehavior and customizing it, but nowhere I can find a way to track the initial tap and

Android Studio emulator first transfers to Mountain View location in Google Maps

本秂侑毒 提交于 2021-01-29 07:50:31
问题 I have an application where I set current location (using Google Maps). Every time I open Google Maps inside the application in Android Studio emulator, it sets location to Mountain View (latitude = 37.4220186, longitude = -122.0839727). The emulator is Nexus 5 having Android SDK 30. If I change the location in settings to Moscow , the emulator can relocate to Moscow after clicking My location button, but sometimes it doesn't relocate. Then, after clicking the second time it can transfer to

My location button is not showing in map fragment

做~自己de王妃 提交于 2021-01-29 07:21:12
问题 I want to show mylocationbutton in my app. For that, I added setMyLocationEnabled(true) in my code. But it's not working. Please suggest me a solution for this. Here is my code. My minimum and maximum sdk are 16 and 26 respectively here is my mapFragment where I wrote my code to set myLocation button MapFragment.java public class MapFragment extends Fragment implements OnMapReadyCallback { private static final int PLACE_AUTOCOMPLETE_REQUEST_CODE = 1; private GoogleMap mMap; private boolean

Google map API - Search by Postcode

感情迁移 提交于 2021-01-29 07:11:59
问题 I am using Google Map Javascript API and it is working fine. var geocoder = new google.maps.Geocoder(); geocoder.geocode({ 'address': address }, function (results, status) { if (status == 'OK') { map.setCenter(results[0].geometry.location); The only issue is I cannot search by only Postcode. For example in Australia if I only search by 2000 (address = 2000) which is Sydney postcode, it doesn't return any results but if I go to the Google map page and type 2000, it shows the correct area. I

Get timezone directly from Country and State Google API

眉间皱痕 提交于 2021-01-29 05:31:44
问题 I need to get the timezone from just country and state (E.g. Australia/Sydney). There's an answer here that gets the coordinates first then requests for the timezone using the coordinates as params. But I'm asking is there a direct way of doing this via any google API? 回答1: Yes, you can use the Time Zone API, the Google Maps Time Zone API provides a simple interface to request the time zone for a location on the earth, as well as that location's time offset from UTC. The Google Maps Time Zone

Can't install GoogleMaps with CocoaPods

孤街醉人 提交于 2021-01-29 03:59:49
问题 I want to install the GoogleMap SDK for iOS in my project. But when I installed with pod install it got an error. [!] Unable to find a specification for `GoogleMaps` pod repo remove master ; pod setup doesn't help. pod repo update --verbose Updating spec repo `.git` $ /usr/bin/git -C /Users/admin/.cocoapods/repos/.git fetch origin From https://github.com/CocoaPods/Specs 42723a4..830f47f master -> origin/master $ /usr/bin/git -C /Users/admin/.cocoapods/repos/.git rev-parse --abbrev-ref HEAD

Unexplained extra Polyline drawn - Google Maps API v3

两盒软妹~` 提交于 2021-01-29 03:26:49
问题 I have a strange scenario with regards to a Polyline that is being drawn on the map. Before I post the code, I'll first demonstrate what happens when I make use of the normal direction services (Both calculates the resulting disctance the same = Total Distance: 62.734 km ): Now, when I draw the directions myself - this straight line appears out of nowhere: Code snippet: <script type="text/javascript"> var markers = [ { "lat": '-26.2036247253418', "lng": '28.0086193084717' } , { "lat": '-26

Google Maps generates blank grey <div>

血红的双手。 提交于 2021-01-29 02:11:49
问题 I am currently trying to generate several Google Map elements on a single page inside a jQuery each() function. There are several .new-venue-item elements on the page, and they look like this: <div class="new-venue-item"> <div class="image"> <div class="image"> <a href="/venue/8121_the-square-bristol-city-of-bristol" title="Discover more about The Square"><img src="http://static.weddingvenues.com/venues/200x300/Wedding-image-with-logo-rectangular.jpg" class="" width="200" height="300" alt=""

Places API autocomplete problems

为君一笑 提交于 2021-01-28 19:31:31
问题 Hi I'm new to android and am setting up the autocomplete code for the places api. I was following the google dev instructions on their website and ran into a problem that I can't seem to find any answers on. I can't seem to find any info on what i am supposed to put for ID and NAME on the first line. There are no auto complete suggestions that come up and I haven't been able to find any info on it on the official documentation. I believe I have imported everything that I need to as I don't