maps

Google Maps blank on real Android device - but works on Emulator

匿名 (未验证) 提交于 2019-12-03 01:02:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Hola, I am trying to get the maps to work, it appears to work fine the the Nexus 6 emulator, however when I run it on a Moto G or a Samsung Galaxy the map is completely bank - it just contains the google logo in the bottom corner. I have generated a google maps key and put that in my google_maps_api.xml file. Do I have to generate a SHA-1 certificate fingerprint? If yes, how do I do this? See answer: https://stackoverflow.com/a/33691443/5387193 I don't quite understand the instructions. Here is my log: http://textuploader.com/52xzy Edit 1:

Is there a benefit to using Encoded Polylines with Google Maps API v3? [closed]

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: If one is dealing with hundreds of polylines, would there be a big performance benefit to encoding the polylines using https://developers.google.com/maps/documentation/utilities/polylinealgorithm?hl=sv-SE It seems that this is mostly used with API v2 and v3 handles large amounts of polylines on its own fairly well? I can't seem to find any benchmark comparisons. 回答1: There is a substantial gain when using google.maps.geometry.encoding.decodePath() to decode encoded paths when adding a polyling/polygon to a google map. I have a

context is not defined JavaScript

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: So referring to the original problem I have here Google Maps Javascript V3 Uncaught TypeError: Cannot read property 'offsetWidth' of null and after doing a lot of googling, I have found a solution which I thought would be workable which is this How to append multiple Google Maps areas to divs using Handlebars . However, I have implemented mine in the following way var EmployeeView = function(employee){ this.render = function(){ $('body').append(this.el); // inside the new div, put the Handlebars template, with the data from the employee this

Cannot end a section without first starting one in Laravel

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: @extends('main') @foreach ($hotel as $hotel) @foreach ($city as $city) @section('title'," $hotel->hotel - $city->city") @endsection @section('content') {{-- Header --}} <div style="background-image:url('../img/{{ $hotel->id }}.jpg'); height:400px; background-size:cover;"> <div class="container"> @include('partials._nav') <div class="row"> <center> <h2> <div class="col-md-12 hotel-name"> {{ $hotel->hotel }} <p class="city"> </h2> {{ $city->city }} @endforeach </p> </div> </center> </div> </div> {{-- End Search bar --}} </div> </div> {{--

Settimeout to avoid over_query-limit

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: i am trying to retrieve addresses using the googlemaps geocoder..but iam getting only few addresses ..as i see my javascript is failing to retrieve after 10 addresses..below is my code function fetchData(lat,lng,type){ $('#placedata').empty(); myLatlng = new google.maps.LatLng(parseFloat(lat), parseFloat(lng)); map = new google.maps.Map(document.getElementById('map'), { mapTypeId: google.maps.MapTypeId.ROADMAP, center: myLatlng, zoom: 10}); var request = {location: myLatlng,radius: 50000,types: [type]}; var service = new google.maps.places

Google Maps getMap returns null

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: UPDATED I read many topics but nothing helped or I didn't understand what to do. I get null and I don't know why. I am just learning so please help me. java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.maps.SupportMapFragment.getMapAsync(com.google.android.gms.maps.OnMapReadyCallback)' on a null object reference at com.example.text.fragments.MapFragment.initilizeMap(MapFragment.java:52) at com.example.text.fragments.MapFragment.onViewCreated(MapFragment.java:46) at android.support.v4.app

Manifest references file &#039;Bing.Maps.dll&#039; which is not part of the payload

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Error 1 Manifest references file 'Bing.Maps.dll' which is not part of the payload. C:\Users\xxx\Desktop\xxx\Applicationxx\Applicationxx\Package.appxmanifest Application7 I added this into a existing Metro application and its giving me that error, anyone has solution to it? 回答1: Go to the properties of the project and under Build, you will see Platform Target. Choose either x64 or x86 instead of Any CPU and it should be solved. ~Guo Hong 回答2: To correctly reference Bing Maps for a Metro app... Go to: Project -> Add Reference -> Windows ->

Google maps in flutter applications

匿名 (未验证) 提交于 2019-12-03 00:53:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Hey I wanted to ask if there is a way to use the google maps api in the flutter application. I want to avoid using the static maps. Please let me know if there is a way. 回答1: Inline maps support is covered in issue 73 . It's not implemented yet, but it's in the current milestone. You can use the location plugin to get the current geolocation. 文章来源: Google maps in flutter applications

Google Maps visual refresh - how do disable font Roboto in InfoWindow

匿名 (未验证) 提交于 2019-12-03 00:52:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Just trying the new option google.maps.visualRefresh = true in the new version 3.12 of the Google maps javascript API. And although the map new look is great, now the text in my InfoWindows is using the font size Roboto. The new InfoWindow content div CSS is: font - family : Roboto , Arial , sans - serif ; font - size : 13px ; font - weight : 300 ; This wasn't the case before and it doesn't work at all with the design of my website. Any idea how I could remove it to use the default font define in my body ? 回答1: You can still use

Google Maps V3 marker with label

匿名 (未验证) 提交于 2019-12-03 00:46:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: How can I add label to my marker if my markers are populated on ajax success each result. map.gmap('addMarker', { 'position': new google.maps.LatLng(result.latitude, result.longitude) }); I tried like this, but with no success: map.gmap('addMarker', { 'position': new google.maps.LatLng(result.latitude, result.longitude), 'bounds': true, 'icon': markerIcon, 'labelContent': 'A', 'labelAnchor': new google.maps.Point(result.latitude, result.longitude), 'labelClass': 'labels', // the CSS class for the label 'labelInBackground': false }); 回答1: I