google-maps-api-3

creating a URL that links to a specific location in a custom google map

对着背影说爱祢 提交于 2019-12-24 11:43:07
问题 I have been using the google maps API to create a custom google map entirely based on my own images, and have found ways to make markers or HTML div elements zoom in on specific locations. However, I am wondering is there any way to create a URL link that links directly to a location and zoom level on the map? The idea being that if one were to click on a different link (from outside the site) one would enter the site straight at a specified location, instead of the default location. I know

Fusion Table Layer with polygons AND markers

末鹿安然 提交于 2019-12-24 11:28:18
问题 Using Google Maps API v3 I have a map with the countries coloured using polygons from a Fusion Table Layer. When a polygon is clicked it opens the default Fusion Table info window which has been configured in the web interface. Some of the countries can't be seen at certain zoom levels so I'd like these countries to have a polygon AND marker, which when clicked open the default Fusion Table info window. I did add a standard map marker but there is no way to open the Fusion Table info window

Remove Google Street View Panorama Effect

我们两清 提交于 2019-12-24 10:48:45
问题 I have a Google Street View that I have added using the Google Maps JavaScript API v3. You can see it here. Most of what the map does is fine. The only problem is that the Street View seems to be displaying the location in a weird spherical effect. I just want the street view to be the same as it is on here with just the straight image of the location without any panorama effect. The code I have used is here: <script src="https://maps.googleapis.com/maps/api/js?key

My script for react-google-maps don't loads

元气小坏坏 提交于 2019-12-24 10:36:08
问题 i want to render the component Searchbox, i copied it exactly in my app, but i get an error: error Line 44: 'google' is not defined no-undef Line 79: 'google' is not defined no-undef i already loaded my <script async defer src="https://maps.googleapis.com/maps/api/js?key=MY_KEY_IS_HERE"></script> into the head of my index.html but it showes me the error anyway. Could it be, that index.html can't load my script ? i created my app with create-react-app 回答1: It is probably your linter

How to change color polygon(kml+geoXml)?

半世苍凉 提交于 2019-12-24 09:49:29
问题 I show KML map on my site with help geoXml3. There are polygons and markers. But when I want to do something with polygons on click him, nothing happens. I want to change color pressed polygon and change color siblings polygons. Can help me? It is my code: function initialize(){ myLatLng = new google.maps.LatLng(-34.397, 150.644); var myOptions = { center: {lat: 55.864237, lng: -4.251806}, zoom: 12, scrollwheel: false, mapTypeId: google.maps.MapTypeId.HYBRID }; map = new google.maps.Map

KML markers missing on Google Maps API v3: What's wrong?

不想你离开。 提交于 2019-12-24 09:40:06
问题 I'm new to the Google Maps API v3 and have been closely reading the documentation. My map loads fine, but it's not displaying the Placemarks I've set up in my KML file (http://hepac.ca/wp-content/mapping/wellnessnetworks.kml). The KML validates fine at FeedValidator and displays without issue in Google Earth, so I'm assuming it's a problem with my code below. The placemarks were appearing at one point, but I must have accidentally deleted some crucial code. Thanks in advance for helping!

Dynamic change of marker based on value in KML file

南楼画角 提交于 2019-12-24 09:26:50
问题 I am using KML file to overlay my data on google map . Actually I want to change the marker color based on some value which in the KML file . How can I do that . 回答1: First of all: KML supports the styling of icons, but the <color> -element is not supported for <iconStyle> by the Maps-API, so you cannot change the color of an Icon(see https://developers.google.com/kml/documentation/kmlelementsinmaps for more details). What you can do is use different icon-images with the desired colors. But

Check if location is on a toll road

帅比萌擦擦* 提交于 2019-12-24 09:18:59
问题 I am working on a shipment system and in order to calculate the charge for a shipment I need to know if the driver whas in a toll road during the job so I can add the charge to the shipment. I get the location of the driver all the time from an android/ios app he is using. My question is: Is there a way to send a location (latitude & longitude) to google maps api and get back an answere if the location is on a toll road. Thank you 回答1: Well, there is no API for this particular request, that u

Google Maps API 3 is acting buggy

前提是你 提交于 2019-12-24 09:08:05
问题 I'm trying to put a google map within a jqueryui tab. The map shows up; however, the full map itself does not fill its canvas. Additionally, trying to scroll the map makes it jumpy. Does anyone have any ideas? Here is the code I'm using: <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="TabsExample.aspx.cs" Inherits="TabsExample" %> <asp:Content ID="Content1" ContentPlaceHolderID="Head" Runat="Server"> <link href="css/jquery-ui-1.9.2.custom

Google Maps v3 API: KML layer messing with click, mouse events

旧城冷巷雨未停 提交于 2019-12-24 09:06:53
问题 I'm working on a project where, after creating some nice code for creating polygons and attaching mouse events to them, the addition of KML layers (mainly placemarkers) results in uncooperative behaviour between the placeholders of the KML layer and the generated polygons. If I create the polygons first and set the KML file afterwards, clicking on the placemarkers brings up the infowindow () as expected. However, mouseovers on the polygons below yield no result, whereas before they get