Questions tagged as 'google-maps-api-3'

0
answers

Centralize Google Maps between two Javascript routes

Good Afternoon, Guys! I'm having trouble centralizing using Google Maps API between 2 points, which happens below in the screenshots below. The application is in Ruby on Rails and we use JS for some of the maps, when I click to open the mo...
asked by 12.07.2017 / 21:10
0
answers

Polygon return

I have localizations of a polygon saved in a DB. Return these locations to JavaScript by a JSON like this: [{"lat":"-21.9838014173847","lng":"-49.409637451171875"},{"lat":"-20.3034175184893","lng":"-45.410614013671875"},{"lat":"-23.7250117...
asked by 07.06.2017 / 21:19
1
answer

Access JS function

How can I call a JS function within a click event, and is this function inside another? Follow the code: function setPin(geocoder, resultsMap, address, i) { geocoder.geocode({ 'address': address }, function(results,...
asked by 24.05.2017 / 19:35
0
answers

Google Maps API 'title' filter

Good evening, I create bookmarks on the map using the method: function addMarkersLabel() { var latlngbounds = new google.maps.LatLngBounds(); for (var i in points) { var marker = new MarkerWithLabel({...
asked by 08.06.2017 / 04:35
1
answer

Start page with checkbox unchecked

I'm new to programming and I'm trying to develop a web map that has layers, to be turned on or off by the user through checkboxes. I'm having a hard time getting the page loaded with the checkboxes unchecked, and therefore with the layers off...
asked by 26.04.2017 / 22:25
1
answer

SearchBox Google Maps JS API does not return search results

Good night, I have a map obtained through the Google Maps JavaScript API, and I'm doing the insertion of a searchBox. So far so good, the search box has been inserted and the autocomplete is working. The problem is that when the field is "sent",...
asked by 28.03.2017 / 01:33
0
answers

Problem - Add Google Maps bookmarks from JSON

I'm having an issue that is as follows: I have to make a call from a JSON that contains latitude and longitude from multiple locations and then add them to a Maps map as bookmarks. I can load both the map and JSON, but the markers are not displa...
asked by 13.03.2017 / 13:48
0
answers

Google Maps API: retrieve name of country or city from a coordinate

I need to check to be a coordinate (latitude and longitude) that belongs to a city or country. Does anyone know a simple way to do this using Google Maps API v3 (javascript)?     
asked by 07.03.2017 / 21:32
1
answer

Google Maps Event - AddListener

Hello, I would like to know if anyone has any idea how to return a GLOBAL event from anything done on the map to be interpreted with CASE! Here's how I use them today.    google.maps.event.addListener (map, " click ", function (event) { In...
asked by 28.01.2017 / 06:47
1
answer

Enter city name in a Search box and open map of that city on another page

Well, I am a beginner in the area and would like help from the most experienced. I'm starting a project that aims to use Google Maps to present a location based on a search box query by the user. I have a table called clients in Mysql and would...
asked by 14.12.2016 / 16:21