Category "google-maps-api-3"

Style neighboring countries Google maps

Does anyone know if it is possible with the styling wizard to give neigh-boring countries a different color. I want to highlight a certain country. We use the G

How to get polygon co-ordinates for a location searched on google maps. Maps API

I want to know if there is any way to get a city/suburb/postal code's outer boundary coordinates, so as to be able to draw a polygon on the map. I have read thr

Is there any event listener to check if the wms layer has loaded or not in google maps?

In a react web application, I am overlaying wms tiles on google maps using map's property overlayMapTypes. if (map && activeLayer) { let layer = new

How to address addDomListener() deprecation in google maps

When I call addDomListener or addDomListenerOnce: const domNode = document.getElementById('...'); google.maps.event.addDomListener(domNode, "mouseover", () =>

Secure google maps api key in an angular app

I'm using angular and google maps. In all the tutorials I find, the instruction says something as: add to your index.html code: <script src="https://maps.g

Is there any way to customize Google's Auto complete address result?

I want to customize auto suggestion result. I want to add more two addresses at the top of the result. Is it possible using google api? for more understanding I

React native app : Not authorized to use location services

I'm currently working on a project that uses the geolocation service of my phone. I currently have a prolem with this service, it says that geolocation is not

center and fit boundaries of geojson multiple polygon data

I am trying to center and fit the boundaries of multiple geojson polygon features on my google.maps.Map. See this non geojson fiddle recreating the effect i'm

How can I get content out of Google Maps MVCArray?

I'm working with google.maps.polygons. The library uses a google.maps.MVCArray element to store the vertices of the polygon where each vertex contains a latitu

Google maps API autocomplete.getPlace() inconsistently returns geometry

I'm using GoogleMaps Autocomplete in an AngularJS application and when I call... autocomplete.getPlace(); half the time when i try to use place it says geom

how to lock a draggable route with google Maps?

I've got google map on my webapp working with the JavaScript API V3. I give my users the ability to create some routes with this features: the user can create

How to get TimeZone, latitude and longitude using single Google API Call

I have address(city,state,country,zip) and want to get TimeZone , latitude and longitude in single Google API call , i see google provide TimeZone api which acc

Google API Heatmap Layer exception, why?

I want to pass the heatmapdata array for my Heatmap Layer from my PHP file. When running my code (below) I get the following exception: Uncaught TypeError:

google maps animated marker moving

So im trying to move marker smoothly, but id doesnt work. Marker is moving, but not smoothly, the same result i can have if i will write marker[n].setPosition

Javascript/Google Maps API - "TypeError: undefined is not an object (evaluating 'addresses[x][0]')

I am trying to plot markers on a google map using an array of addresses. The markers are correctly plotting (I used the tips in this post: Multiple markers Goog

How to Get Google My Maps Location Pins in Latitude and Longitude

I have created a custom map via http://www.google.com/mymaps/ and have added a few locations. Is there a way for me to retrieve these locations (in lat and lng

Google Maps API v3 binding events to multiple maps

I've got a page with two Google maps on, using the v3 API. Currently they have one pin each, with the same lat & long set for each pin, although one of the

Draw a rectangle google.maps.Polygon given its center point and dimensions

I am working on a PHP script which takes XML input, parses it and then displays (eventually rotated) rectangle and ellipses areas. Because area can be rotated,

Google Map marker errors, InvalidValueError

Trying to display multiple markers but it's not working. I'm trying to display multiple markers on google maps but I'm getting multiple errors InvalidValueError

Google mixed polyline and direction

I'm trying to build an app for building a route with Google Maps. I need to combine Google's direction service and Google's polylines. The route could consist o