google-maps-api-3

Google Maps API dynamic load with AngularJS

烈酒焚心 提交于 2019-12-20 07:06:42
问题 I'm trying to load Google Maps API using AngularJS: <html data-ng-app="search-app"> <head data-ng-controller="GoogleMaps"> <script ng-src="{{mapsUrl}}" type="text/javascript"></script> .... </head> and controller for that part: search.controller('GoogleMaps', [ '$scope','$sce', function GoogleMaps($scope,$sce) { var mapsUrl = '//maps.google.com/maps/api/js?sensor=false&key=my_api_key'; $scope.mapsUrl = $sce.trustAsResourceUrl(mapsUrl); } ]); but when the Google Map API is called within the

multiple markers on google maps from firebase database

血红的双手。 提交于 2019-12-20 06:59:21
问题 <!DOCTYPE html> <html> <head> <title>Geolocation</title> <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> <meta charset="utf-8"> <style> /* Always set the map height explicitly to define the size of the div * element that contains the map. */ #map { height: 100%; } /* Optional: Makes the sample page fill the window. */ html, body { height: 100%; margin: 0; padding: 0; } </style> <!-- Place this inside the HTML head; don't use async defer for now --> <script src="https:/

multiple markers on google maps from firebase database

故事扮演 提交于 2019-12-20 06:58:33
问题 <!DOCTYPE html> <html> <head> <title>Geolocation</title> <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> <meta charset="utf-8"> <style> /* Always set the map height explicitly to define the size of the div * element that contains the map. */ #map { height: 100%; } /* Optional: Makes the sample page fill the window. */ html, body { height: 100%; margin: 0; padding: 0; } </style> <!-- Place this inside the HTML head; don't use async defer for now --> <script src="https:/

How to find only school results in google autocomplete api?

回眸只為那壹抹淺笑 提交于 2019-12-20 06:37:14
问题 I want to search only schools in google autocomplete api. I have tried but it does not filter the search specific to schools only. I have read from below url https://developers.google.com/places/web-service/autocomplete But it has only types parameters for filtering results. I am able to search only schools in google nearby places search but it requires me to send lat, long but I want to search all schools despite of any location. 回答1: At present time Places API autocomplete doesn't support

passing values to JavaFX from javascript

亡梦爱人 提交于 2019-12-20 06:36:12
问题 As this is my first post , forgive any inaccuracies. My problem , i want to pass the value from an javascript function to Javafx on the initialize method public void initialize(URL arg0, ResourceBundle arg1) { // TODO Auto-generated method stub final URL urlGoogleMaps = getClass().getResource("googlemaps.html"); System.out.println("fjdsoij"); browser.getEngine().load(urlGoogleMaps.toExternalForm()); WebEngine webEngine = browser.getEngine(); webEngine.getLoadWorker().stateProperty()

App won't run unless you update Google Play services

谁说我不能喝 提交于 2019-12-20 06:27:42
问题 I'm fairly new to developing and have my Google Maps API working perfectly, only snag I have is that in my gradle dependencies I have to compile 'com.google.android.gms:play-services:9.+' instead of play-services 10.0.1. When I use 10.0.1 on my emulator (the android studio emulator, api25), I open my maps activity I just get com.android.tools.fd.runtime.BootstrapApplication won't run unless you update Google Play services. I have all the needed packages installed and everything, not sure why,

Adding multiple custom markers to a google map using an array

十年热恋 提交于 2019-12-20 06:17:12
问题 I'm currently working on implementing a google map for my website and stumbled across a great tutorial here which almost got me to the promised land. However, I have one more piece of functionality I'm looking to add. Inside my array I want display one of three different custom markers on my map. Does anyone have any ideas? Here's a fiddle... var locations = [ ['Bondi Beach', -33.890542, 151.274856, 4], ['Coogee Beach', -33.923036, 151.259052, 5], ['Cronulla Beach', -34.028249, 151.157507, 3]

Google maps API issue with geocoder

荒凉一梦 提交于 2019-12-20 06:16:39
问题 I think I'm just doing something stupid because my javascript skills aren't the greatest. The following code produces a blank, gray map: function initialize() { directionsDisplay = new google.maps.DirectionsRenderer(); geocoder = new google.maps.Geocoder(); var address = "Minneapolis, MN"; geocoder.geocode( { 'address': address}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { lat = results[0].geometry.location.lat(); lng = results[0].geometry.location.lng();

Google Maps JS API v3 and looping animated gif's

不打扰是莪最后的温柔 提交于 2019-12-20 06:16:22
问题 I can't seem to loop animated gifs with the Google Maps API. It plays the animation the first time around but will not play it again after that. Can anyone point me in the right direction? I have a lot of code in this file so I have dragged out the important bits, I'll happily put up some more if needed. var marker = new google.maps.MarkerImage( 'library/img/gmap_marker.gif', new google.maps.Size(100, 100), new google.maps.Point(0, 0), new google.maps.Point(100, 100) ); var shadow = new

Googlemap API v3 - Can I get Content from Marker?

江枫思渺然 提交于 2019-12-20 06:09:01
问题 I created a lot of a Marker but I think after obtaining their content used to do average and set infowindow click inside is the average of all Marker on markerCluster. Each Marker has to give him a value. snapshot I want to grab all marker and average , and displayed in infowindow. Snapshot: here is my Code: var locations = [ ['100', 22.75853,121.14886, 1], ['90', 22.7586,121.14891, 2], ['80', 22.75857,121.1488, 3], ['70', 22.75844,121.14887, 4], ['60', 25.08389,121.57796, 5], ['50', 22.75839