google-maps-markers

google maps infowindow.close() case in separate function

一笑奈何 提交于 2019-12-13 22:02:32
问题 I want to make infowindow-making process in the different function, cause it`s gonna contains much info. I have a global-defined var infowindow = new google.maps.InfoWindow({}); when i m trying to close it in the separate function, infowindow.close() method doesn t works. Can`t get, wat is wrong here? the infowindow object is successfully passed into the function, cause new infowindows creating successfully Here is a full code var locations = [ ['Bondi Beach', -33.890542, 151.274856, 4], [

Is Google Maps smart enough to refrain from adding markers at positions that are not currently being displayed?

无人久伴 提交于 2019-12-13 19:23:49
问题 In my app/site, I start off showing the contiguous USA but allow the user to select a state (or go back to USA48, or select USA50+) from a dropdown list (selection widget): <select id="stateSelector"> <option id="USA48">USA (48)</option> <option id="USA50">USA (50+)</option> <option id="Alabama">Alabama</option> . . . <option id="Wyoming">Wyoming</option> </select> I also allow the user to display various categories of markers depending on checkbox selections they make. These markers are

Loading XML via jQuery for Google Maps API V3

两盒软妹~` 提交于 2019-12-13 17:51:29
问题 UPDATE: Fatigue onset user error, not the code itself, turned out to be the problem. I simply called the initialize() function twice by mistake. I'll leave this post up as the code snippet may be of some use to others hoping to consume XML data for a Google Map via jQuery. I am loading map marker coordinates and infoWindow content from an XML file via jQuery for Google Maps (API V3). Everything appears to be working fine , except for the fact that every marker is added twice . Here is my JS:

How do I specify a marker in a url using a name and lat/long for the new Google Maps?

拈花ヽ惹草 提交于 2019-12-13 16:54:58
问题 I tried generating a url as per the answer by Everton Cunha here: What parameters should I use in a Google Maps URL to go to a lat-lon? i.e. http://maps.google.com/?q=MY%20LOCATION@lat,long This works for me in Google Maps in what is now called "Classic Mode", but in the new Google Maps, it places a marker, displays the lat/long next to it, and the marker does not display any information when I click on it, and the nearest address appears in the search box. I need a url that places the marker

Google Maps API v3 in IE Not Displaying Map or Markers

好久不见. 提交于 2019-12-13 15:42:29
问题 We recently upgraded from Google Maps v2 to v3 and now the Markers and Map will not display in any version of IE. It works in every other browser. The console is showing Stack Overflow errors, and we think it has something to do with the markers and/or creation of markers. We disabled the fitbounds command, and the map displayed but with no markers in IE. However, the same map in Firefox and Chrome has markers which puzzled us. I've been trying to figure out a solution to this issue for a few

Haversine Fomula with MySQL get nearby locations [closed]

这一生的挚爱 提交于 2019-12-13 11:17:32
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I'm trying to use the haversine formula in my PHP/MySQL to get nearby locations to where I am I'm using AJAX to get only nearby markers on my google map. What I know is that my query isn't returning anything. I know that there is a location within the distance of where I'm looking. Basically, what's wrong with

Google Javascript Api Markers not visible

烈酒焚心 提交于 2019-12-13 10:43:11
问题 I want to show markers along with my current location. In the below code location changes from default location to current location but the markers are not visible. Stores are retrieved correctly. I want to display the markers along with the my current location. function initMap() { //Set default location of google maps for demonstration purposes var map = new google.maps.Map(document.getElementById('map'), { center : {lat: 18.533333, lng: 73.866667}, zoom: 10 }); //create global variables

Google maps Marker icon padding between icon-fillColor and strokeColor

对着背影说爱祢 提交于 2019-12-13 10:18:53
问题 I am trying to create a Google map marker icon with padding between the icon-fillColor and the outer StrokeColor. My Marker Code: marker = new google.maps.Marker({ id: i, position: position, label: { text: 'id', color: "white", fontWeight: 'bold', fontSize: '16px', }, map: map, title: "My Title", icon: { path: google.maps.SymbolPath.CIRCLE, scale: 15, fillColor: "#4A86FE", fillOpacity: 1.0, strokeWeight: 6, strokeOpacity: 0.8, strokeColor:"red", rotation: 30 }, animation: google.maps

Hiding just one marker from a list isn't working

拜拜、爱过 提交于 2019-12-13 10:11:07
问题 So I have a bunch of markers on the map and they get their data from firebase real-time database. I have like a switch button on the map that shows or hides all markers and it works fine. But now I want specific marker to hide when some action occurred to it, but it's not working..! What really happens is.. when I trigger some action on that marker.. it gets updated on the database normally but it did not hide from map in real-time.! I had to close the map and open it again to see the changes

Adding notes to Shapes overlay in Google Maps

假装没事ソ 提交于 2019-12-13 09:23:18
问题 Can we add some notes, a string, while making overlay shapes with google maps API? Like If I draw a circle around my home to indicate High alert area within circle with a note on it, so a person seeing the circle will know quickly, or can I just use color scheme to do this? Please, if you guys have some solution? 回答1: Yes you can do it. Such a thing could be achieved with InfoWindow class, see also InfoWindowOptions object about details what options you can modify and also check the google