[Google Maps API v3] Re: Add two marker with click on the map is draggable direction
Adding two markers with one click? I'm wondering how should that work? Do you mean a radius search? On Nov 25, 4:01 pm, Map smurfs Earth map.smurfs.ea...@gmail.com wrote: Hi all, im working on after the map is load, user able to *add two marker with click on the map is draggable direction*. i has search online example been so long and i can't find it. Anyone can help, any sample or source code for it, desperate now. Thank you. -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Re: Add two marker with click on the map is draggable direction
You could try my ContextMenu: http://code.martinpearman.co.uk/googlemapsapi/contextmenu/1.0/examples/advanced_example.htm Let the user choose a location with a right-click, add a draggable Marker to the location and the user can fine tune the location by dragging the Marker. Documentation can be found here: http://code.martinpearman.co.uk/googlemapsapi/contextmenu/1.0/ Martin. On Nov 25, 3:01 pm, Map smurfs Earth map.smurfs.ea...@gmail.com wrote: Hi all, im working on after the map is load, user able to *add two marker with click on the map is draggable direction*. i has search online example been so long and i can't find it. Anyone can help, any sample or source code for it, desperate now. Thank you. -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Modifying the CSS for an infowindow
Since version 3.7, infowindows no-longer have rounded corners. That said, it is probable that some of us still want rounded corners and do not want to create a custom overlay just to reproduce this. Is it possible to access the css used to create the infowindow to be able to add a css border-radius element ? Do we need to open a change request to add a parameter in InfoWindowOptions to trigger rounded corners ? -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Re: Modifying the CSS for an infowindow
It's not possible to access the elements that build the infowindow. You can use v3.6 as long as it's being available - or use one of the infowindow's alternatives. You may open an new request in the issue tracker. But I doubt that that will have the slightest effect. On Nov 26, 11:50 am, sgiddings mr.s.giddi...@gmail.com wrote: Since version 3.7, infowindows no-longer have rounded corners. That said, it is probable that some of us still want rounded corners and do not want to create a custom overlay just to reproduce this. Is it possible to access the css used to create the infowindow to be able to add a css border-radius element ? Do we need to open a change request to add a parameter in InfoWindowOptions to trigger rounded corners ? -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Where are the ridefinder marker icons?
Please read on here http://groups.google.com/group/google-maps-api/browse_thread/thread/8ab04e21e6e337ec/fcd38e383fbd8521#fcd38e383fbd8521 -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Re: How to add a domready event to an infoBubble
Rossko, I took me quite a while to decode what you were telling me. I'm quite confused as to how the domReady event can fire before the infoBubble is opened. Anyhow, what I finally figured out was that I needed to set the content AFTER I have created the listener. Thus the code that finally worked was: var infoWindow = new InfoBubble({maxWidth: 1000, position: latLng, arrowSize: 0, maxHeight: 600}); google.maps.event.addListener(infoWindow, domready, function() {load_rotator();}); infoWindow.setOptions({content: responseText}); infoWindow.open(map); Thanks! -- Geoff -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/1rMvzbwjHg0J. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Adding InfoWindows to Markers
Hello, Ive recently started playing with the V3 Google Maps API. Ive managed to work out how to display mulitple markers at various LatLngs through our district, but im wanting to add further information to each Marker, through the use of infowindows. However i cant work out how to do this effectivley, as i am a novice to this kind of thing. Ive already looked through the help guides but they arnt really much use to me. If anybody has an example that they use within their organisation of business that would help me better i feel. Anything that anybody can provide would be greatly appreciated. Many Thanks Ian Usher -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Re: Is Google Maps the right tool to compare 2 routes?
Hi Barry, Is it possible to display those coordinates from a desktop app without uploading them to a public server first ? John On Nov 24, 9:55 pm, Barry Hunter barrybhun...@gmail.com wrote: Why put it though the Directions API at all? if you have a list of coordinates from the GPS, just plot them directly and draw a line. You wont get caught out when the subject travelled via a thoroughfare not in Googles' database. Plot the two lines in a different colour, and should be easy to visually compare the two routes. On Thu, Nov 24, 2011 at 7:09 PM, Raul Dias rauld...@gmail.com wrote: Hi, I am evaluating if Google Maps can be the right tool for my use. The idea is to have a list of waypoints from a gps ( e.g. watch runner/biker ) and trace the route that he want by. The first problem I see is that there is a limitation of 8 waypoints in the directions api. Now assuming a second list of waypoints, I want to compare the the route is the same as the first one. Is Google Maps the right tool for it? If not what do you suggest? Thanks, -rsd -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/NJx0JP0RVI0J. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en. -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Usage Limits and Billing Confirmation
Just wanted to double check... We run severall sites where clients add their own venue information and some have included an iFrame link from Google Maps (iframe width=425 height=350 frameborder=0 scrolling=no marginheight=0 marginwidth=0 src=http://maps.google.co.uk/maps?f=qamp;source=s_qamp;hl=enamp;geocode=amp;q=Leicester+Squareamp;aq=0amp;sll=51.450008,-0.196159amp;sspn=0.325215,0.479965amp;vpsrc=0amp;ie=UTF8amp;hq=amp;hnear=Leicester+Squareamp;t=hamp;z=14amp;ll=51.51139,-0.1284amp;output=embed;/iframebr /smalla href=http://maps.google.co.uk/maps?f=qamp;source=embedamp;hl=enamp;geocode=amp;q=Leicester+Squareamp;aq=0amp;sll=51.450008,-0.196159amp;sspn=0.325215,0.479965amp;vpsrc=0amp;ie=UTF8amp;hq=amp;hnear=Leicester+Squareamp;t=hamp;z=14amp;ll=51.51139,-0.1284; style=color:#FF;text-align:leftView Larger Map/a/small) The TCs clearly state that it is Quote [For-profit web sites are permitted to generate up to 25 000 map loads per day using the Google Maps JavaScript API v3 ] That's websites using JavaScript API V3 correct so these sites would not be charged regardless of the number of requests? -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/4BJFvq930zMJ. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Google map showing gray areas when show / hidden
I'm having this problem: I have two Google maps in one page, showing just one a time. One shows a user-selected preferred store. If the user wants to choose another one, a WebService provides the nearest ones, and with that info, I hide the first map (and some associated elements), create another map and show it. Here is the fiddle: http://jsfiddle.net/Osoascam/ReSsM/2/ I have several questions: 1. Calling the Google Maps API directly (not via google.load), is there a way to determine when the script has loaded completely so I don't run into the google is not defined error? 2. Is it OK what I'm doing to have two maps? Passing references to var currentMapId, searchMapId? As I'm sending a reference, I thought it might work... It's working, but I think it's kind of stupid. I don't know if just having one reference is OK. 3. Try to click the buttons fast over and over again, the map shifts and a large gray area appears. This is not a big deal on the fiddle, but it is on my application, as sometimes it stays that way forever, even if the user drags the map. This is actually my most important question, the other two are just about code organization and optimization. How can I fix it? 4. Finally, I don't know if it's my impression, but it seems to load the maps extremely slowly when you drag it around. *Note: Actually my second map never loads, but the application is so big, I'm still testing the reason. For some weird reason, the map starts loading whenever I resize the browser.* -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/9XlFufEwtZoJ. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Zipcode from City name
Hi, I want to get a person's Zip code. I know there City name and Country. Is there any API for this? I googled it first and all APIs that I found are for Get City and State by Zip code and not vice versa .. Can anyone help please? Thanks Adil Malik -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/svb7c57JIagJ. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Complex Icons - Too many in my Array to render?
I am upgrading from API 2 to 3 tonight, I was scratching my head for hours tonight trying to figure out why this simple use of the API did not work...I re-wrote it several times, copied it from several locations around the net, almost went crazy trying to figure it out...then instead of trying all 49 items in the array, I tried 3-5, and my icons showed up on my map...Using API 2 I had over 60 icons on screen at once, so I do not believe its an API issue? http://txmotocross.com/track-map/ view-source:http://txmotocross.com/javascripts/trackmap.js How can I get 49 items to show up? var tracks = [ ['211 Motocross',33.326996, -101.937866, 17], ['Andrews MX', 32.474001,-102.581882, 18], ['Austin DelValle MX Park', 30.161203, -97.600449, 19], ['Badlands MX Park', 33.285500, -96.265800, 13], ['Boondoxxx MX', 33.113686, -96.375671, 21] ['Bowers MX', 35.253967, -101.884377, 22] ['BC MX', 29.861941,-95.060121, 20] ['Brushy Creek Motor Farm', 32.993160, -96.245491, 23] ['Buffalo Creek MX', 32.641216, -95.848129, 12] ['Buffalo Valley MX', 29.459740, -98.128937, 24] ['Burleson MX', 32.542217, -97.289879, 26] ['Cornerstone MX', 30.036884, -95.803444, 14] ['Cowboy Badlands MX', 29.925370,-94.275763, 27] ['Cycle Ranch MX Park', 29.142361, -98.111748, 5] ['DDMX Ranch', 27.754219, -97.885880, 28] ['Extreme MX Park', 32.135536, -96.468407, 29] ['Flat Creek MX', 33.115879, -94.522118, 30] ['Freestone County Raceway', 31.805500, -96.400505, 1] ['His 956 Facility', 33.143669, -97.8053, 15] ['I-35 MX', 33.818707, -97.133186, 3] ['Johnsonville MX Farm', 32.899254,-95.582911, 6] ['Los Fresnos MX', 26.089790, -97.514687, 16] ['Lucky Landings MX', 32.664070, -98.039062, 31] ['Mesquite Hills MX Park', 32.455421, -99.837944, 32] ['Moto-X-Pit', 32.584625, -96.610870, 33] ['Monkey Island MX', 29.954323,-99.075859, 34] ['Nocona MX', 33.818413, -97.773560, 35] ['North Forty Cycle Park', 33.684460, -96.513359, 36] ['Oak Hill MX', 33.299229, -97.691658, 7] ['Paris MX', 33.869952,-95.479624, 37] ['Rio Bravo MX', 29.891947, -95.237473, 8] ['RedBug Cycle Park', 31.313489,-94.261258, 38] ['River Valley MX', 33.026134, -97.530884, 39] ['Shady Grove MX', 32.802353, -96.906975, 40] ['Southwest MX Park', 29.456806, -95.821335, 41] ['Splendora MX Park', 30.231613, -95.113144, 4] ['Spring Valley MX', 32.435551, -99.478989, 42] ['Swan Raceway', 32.440411, -95.403816, 9] ['Trophy Club Park', 33.015285, -97.177910, 43] ['TNT Raceway', 33.625145, -101.662376, 44] ['The Pit MX', 32.826069, -96.280617, 45] ['Three Palms Extreme Sports Park', 30.243263, -95.458664, 10] ['Underground MX Park', 32.365227, -96.306618, 11] ['Ulitmate Motocross Park', 29.423862,-95.176084, 46] ['Village Creek MX', 32.614395, -97.255524, 2] ['Waco Eagles Motorcycle Club', 31.518776, -96.973267, 47] ['West Texas MX Park', 31.942112, -102.179504, 48] ['White Kunckle Ranch', 29.399656, -99.042618, 50] ['Willow Branch MX',32.496887, -95.584641, 49] ['Xtreme MX', 27.592464, -97.663544, 51] ]; Thanks! -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/oznJe3CwL6MJ. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Re: How to add a domready event to an infoBubble
From your original script - var infoWindow = new InfoBubble({content: responseText, ... This creates the InfoBubble and populates it. Unlike the standard Infowindow, it's not done asynchronously so 'domready' was fired when complete, before returning to your script. google.maps.event.addListener(infoWindow, domready, ... Too late, the event has already happened Anyhow, what I finally figured out was that I needed to set the content AFTER I have created the listener. That's fine, it is just one of the ways to add the listener before setting content. -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Re: Google map
script src=http://maps.google.com/?file=apiv=2.xkey=mykey; type=text/javascript/script Maps API v2 script type=text/javascript src=http://maps.googleapis.com/maps/api/js?sensor=truelibraries=placesk... Maps API v3 Only load one API -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Re: Adding InfoWindows to Markers
Ive managed to work out how to display mulitple markers at various LatLngs through our district, but im wanting to add further information to each Marker, through the use of infowindows. See http://www.geocodezip.com/v3_MW_example_map1.html from http://www.geocodezip.com/ -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Re: Google Map JavaScript V3
On Nov 26, 12:41 am, amit amitsha...@gmail.com wrote: Hi All, I am make a application with google map its working fine when we are deployed first time. but now when some one access my site from US then its give an error : google.maps.LatLng is not a constructor. but same page when i am access from INDIA then its working fine without give any error. please help me for this issue. i dont know what this problem. If you were to provide a link to your ma (as suggested in the posting guidelines), we might be able to help. -- Larry Thanks Regards Amit Sharma -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Re: Complex Icons - Too many in my Array to render?
http://txmotocross.com/track-map/ ['Austin DelValle MX Park', 30.161203, -97.600449, 19], ['Badlands MX Park', 33.285500, -96.265800, 13], ['Boondoxxx MX', 33.113686, -96.375671, 21] ['Bowers MX', 35.253967, -101.884377, 22] You seem to have forgotten some commas -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] zIndex
I have three groups of markers which have different importance. Within the same group, I want keep the default behavior of the markers (whatever appears on top of other). But I want markers in group 1 always on top of the other groups. What I am thinking is assuming the default zIndex is less then 10K. Group 1: 30,000 + default value Group 2: 20,000 + default value ... But I just can't find a way to do it. Or, Maybe I should simply assign my own value to every marker. -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
Re: [Google Maps API v3] Re: Bouncing Marker
Hi, many thanks for taking the time to reply to my post and the guidance. I'll give this a go and see how I get on. Kind regards On 26 November 2011 07:07, Mr.Pohoda mr.poh...@gmail.com wrote: Add this to line 57 - at the beginning of marker click event: if (bouncingMarker) { bouncingMarker.setAnimation(null); } bouncingMarker = marker; You need to define bouncingMarker variable to be null or something like that. On Nov 25, 4:23 pm, IR HM hobbito...@googlemail.com wrote: I wonder whether someone could help me please. I'm using the following page herehttp://www.mapmyfinds.co.uk/development/mylocationstest.html, to allow the user to select and deselect marker categories shown on a map via check boxes. They can then click the marker on the map or in the sidebar listing created on the left hand side to view further details. I'm now tyring to give the markers the bouncing functionality and I've been able to do this to some degree, i.e. the user can select the marker via the sidebar, or the marker itself on the map, and the marker starts bouncing. However, what I've been trying to do, is to get the marker to stop bouncing once another marker is selected. I've been working on this for sometime now and I just can't work this out., I just wondered whether someone could perhaps provide some guidance on what I may need to do to get this to work. Many thanks and kind regards -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en. -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] infoWindow of marker
This might be a javascript (on which I am weak) question. Here is sample code: var marker; var infoWindow; marker = new ... // first marker infoWindow = new ... // first infoWinfow. google.maps.event.addListener(marker, 'click', function() { infoWindow.open(map, marker); }); markers.push(marker); // I am using marker manager marker = new ... // second marker infoWindow = new ... // second infoWinfow. google.maps.event.addListener(marker, 'click', function() { infoWindow.open(map, marker); }); markers.push(marker); // I am using marker manager // and bunch more Now, no matter which marker I click, it always pop the infoWindow of the LAST marker. I know what the problem is. I don't know how to fix it. I could define var for each of the markers. But it's actually a loop with thousands of markers. Any suggestion? Thanks, John -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Re: Zipcode from City name
On Nov 25, 9:37 am, Adil Malik adi.shou...@gmail.com wrote: Hi, I want to get a person's Zip code. I know there City name and Country. Is there any API for this? Not that I know of, but the Google Maps API has a geocoding service that you can use, provided you display the obtained data in a publicly accessible map. A city has many zip codes, but if you geocode the city name http://maps.googleapis.com/maps/api/geocode/json?address=chicagosensor=false and then reverse geocode the obtained lat/lon http://maps.googleapis.com/maps/api/geocode/json?sensor=falselatlng=41.87811360,-87.62979820 then you get *some* zip code, but not necessarily the one of the person. -- Marcelo - http://maps.forum.nu -- I googled it first and all APIs that I found are for Get City and State by Zip code and not vice versa .. Can anyone help please? Thanks Adil Malik -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Re: infoWindow of marker
Look up function closure. http://econym.org.uk/gmap/closure.htm You need to create the markers in a separate function. -- Marcelo - http://maps.forum.nu -- On Nov 26, 8:42 am, john john.c...@aafa-inc.com wrote: This might be a javascript (on which I am weak) question. Here is sample code: var marker; var infoWindow; marker = new ... // first marker infoWindow = new ... // first infoWinfow. google.maps.event.addListener(marker, 'click', function() { infoWindow.open(map, marker); }); markers.push(marker); // I am using marker manager marker = new ... // second marker infoWindow = new ... // second infoWinfow. google.maps.event.addListener(marker, 'click', function() { infoWindow.open(map, marker); }); markers.push(marker); // I am using marker manager // and bunch more Now, no matter which marker I click, it always pop the infoWindow of the LAST marker. I know what the problem is. I don't know how to fix it. I could define var for each of the markers. But it's actually a loop with thousands of markers. Any suggestion? Thanks, John -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Re: zIndex
Did you try the documentation? http://code.google.com/apis/maps/documentation/javascript/reference.html#MarkerOptions -- Marcelo - http://maps.forum.nu -- On Nov 26, 7:51 am, john john.c...@aafa-inc.com wrote: I have three groups of markers which have different importance. Within the same group, I want keep the default behavior of the markers (whatever appears on top of other). But I want markers in group 1 always on top of the other groups. What I am thinking is assuming the default zIndex is less then 10K. Group 1: 30,000 + default value Group 2: 20,000 + default value ... But I just can't find a way to do it. Or, Maybe I should simply assign my own value to every marker. -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Re: MarkerManager
On Nov 25, 9:23 am, AF afils...@serif.com wrote: Why is the event handler being called twice sometimes? Probably because you're doing something wrong. How can we know? -- Marcelo - http://maps.forum.nu -- -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Re: MarkerManager
Some people on this forum write helpful insightful responces to questions some just respond with the first thing that pops into their head, I thought the question was clear enough, there is no telling what confuses people though, I will try again: If I add a marker 'dragend' event handler in addMarkerBatch_ of the markermanager, then do nothing except create an instance of a map, an instance of the (modified) markermanager and add a single marker to the markermanager the event handler may be called once or twice depending on the current map zoom level. Any ideas why this is the case? ( Marcelo if you dont have any helpful comments dont waste your time and my time replying ) -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/XabUlngiLP8J. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
Re: [Google Maps API v3] Re: MarkerManager
On 26 November 2011 17:02, AF afils...@serif.com wrote: Some people on this forum write helpful insightful responces to questions some just respond with the first thing that pops into their head, I thought the question was clear enough, there is no telling what confuses people though, I will try again: If I add a marker 'dragend' event handler in addMarkerBatch_ of the markermanager, then do nothing except create an instance of a map, an instance of the (modified) markermanager and add a single marker to the markermanager the event handler may be called once or twice depending on the current map zoom level. Any ideas why this is the case? ( Marcelo if you dont have any helpful comments dont waste your time and my time replying ) I'll do it instead. How can we know why this is the case? We don't know anything about your implementation, which is why the posting guidelines (you did read them? Perhaps not) ask for a link rather than a listing or a description. It's FAR easier to see what's going on with a link, because something like Firebug allows break points to be set and variables to be examined. That's very difficult to do with a listing, and impossible with a description. You've described the problem: now please supply a demonstrator which can be debugged. -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Re: MarkerManager
On Nov 26, 6:02 pm, AF afils...@serif.com wrote: Any ideas why this is the case? ( Marcelo if you dont have any helpful comments dont waste your time and my time replying ) I have an additional wish: Please do not complain about wasting your time because posts like yours forces a complete staff of voluntary helpers to waste their time. (I assume that no one of the helpers is a clairvoyant.) -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
Re: [Google Maps API v3] Re: MarkerManager
I'll do it instead. How can we know why this is the case? We don't know anything about your implementation - I thought only people with an insight into the markermanager would bother spending time replying, like I stated previously my implementation is the stock code with an event handler for the marker 'dragend' event in addMarkerBatch_ that outputs a message using alert, that is the entirety of my implmention for the testbed I am using to investigate this error. posting guidelines (you did read them? Perhaps not) ask for a link rather than a listing or a description - Yes I have read them, you have incorrectly come to the conclusion there is a link to give, thats why I gave the full and verbose description above. I suppose its the fundamental problem with forums open to people who have knowledge/insight and others, genuine questions will sometimes attract the attention of people with knowledge/insight and result in a helpful resolution to the problem, but sometimes questions will attract the attention of others who just produce noise. If I can not fix the markermanager provided by google I will write my own, thanks Marcelo and Andrew you have been equally helpful. -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/Mg5qTJFN3cQJ. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Re: MarkerManager
Nothing like a band wagon, quick lets jump on it. Its amazing how quickly a question on a forum leaves the subject matter and just becomes noncence. I can see why you volunteer your skills though, very helpful. -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/igQommTGnvkJ. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
Re: [Google Maps API v3] Re: MarkerManager
On 26 November 2011 17:57, AF afils...@serif.com wrote: I will write my own, thanks Marcelo and Andrew you have been equally helpful. Always pleased to be of service. http://catb.org/~esr/faqs/smart-questions.html#not_losing (in fact all of that is well worth reading) -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Re: MarkerManager
On Nov 26, 10:57 am, AF afils...@serif.com wrote: I suppose its the fundamental problem with forums open to people who have knowledge/insight and others, genuine questions will sometimes attract the attention of people with knowledge/insight and result in a helpful resolution to the problem, but sometimes questions will attract the attention of others who just produce noise. If I can not fix the markermanager provided by google I will write my own, thanks Marcelo and Andrew you have been equally helpful. I suppose that 14,000 replies from Andrew, Pil and myself combined, in the V2 and V3 groups over the past 6 years, are just noise. Wow! Noisy groups! ;-) -- Marcelo - http://maps.forum.nu -- -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
Re: [Google Maps API v3] Re: MarkerManager
Andrew not one of your replies have had anything to do with the subject matter, surely you are not replying with this rubbish just to inflate your ego, I thought you were better than that Andrew, nice to hear from you again though. -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/O2NmERIohYUJ. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Re: MarkerManager
Again, nothing to do with the subject matter but thanks again, you three must be what keeps Google profitable, you go guys, keep it real. -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/4SgDV3u7tXoJ. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Re: MarkerManager
In reply to your origonal post it maybe an echo? As said in an earlier post a link (demo) as none of us are clairvoyants Regards Davie On Nov 26, 6:50 pm, AF afils...@serif.com wrote: Again, nothing to do with the subject matter but thanks again, you three must be what keeps Google profitable, you go guys, keep it real. -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Re: Zipcode from City name
Hi The latest zipcode database for usa can be found here http://federalgovernmentzipcodes.us/ This may be of use instead of reverse geocoding Regars Davie On Nov 26, 3:49 pm, marcelo...@hotmail.com wrote: On Nov 25, 9:37 am, Adil Malik adi.shou...@gmail.com wrote: Hi, I want to get a person's Zip code. I know there City name and Country. Is there any API for this? Not that I know of, but the Google Maps API has a geocoding service that you can use, provided you display the obtained data in a publicly accessible map. A city has many zip codes, but if you geocode the city namehttp://maps.googleapis.com/maps/api/geocode/json?address=chicagosens... and then reverse geocode the obtained lat/lonhttp://maps.googleapis.com/maps/api/geocode/json?sensor=falselatlng=... then you get *some* zip code, but not necessarily the one of the person. -- Marcelo -http://maps.forum.nu -- I googled it first and all APIs that I found are for Get City and State by Zip code and not vice versa .. Can anyone help please? Thanks Adil Malik -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Re: MarkerManager
Try this one : http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/53ecf3b55950ff21/1e01076a8e16f32c Clear description of the problem, but unsolveable without a link. But given a link, solved in one hit; not even by brilliance just a second-pair-of-eyes. -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
Re: [Google Maps API v3] Re: MarkerManager
Good Apples, Lets not let one bad one spoil us. On Sat, Nov 26, 2011 at 1:44 PM, Marcelo marcelo...@hotmail.com wrote: On Nov 26, 10:57 am, AF afils...@serif.com wrote: I suppose its the fundamental problem with forums open to people who have knowledge/insight and others, genuine questions will sometimes attract the attention of people with knowledge/insight and result in a helpful resolution to the problem, but sometimes questions will attract the attention of others who just produce noise. If I can not fix the markermanager provided by google I will write my own, thanks Marcelo and Andrew you have been equally helpful. I suppose that 14,000 replies from Andrew, Pil and myself combined, in the V2 and V3 groups over the past 6 years, are just noise. Wow! Noisy groups! ;-) -- Marcelo - http://maps.forum.nu -- -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en. -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
Re: [Google Maps API v3] Re: MarkerManager
On Sun, Nov 27, 2011 at 9:46 AM, Rossko ros...@culzean.clara.co.uk wrote: Try this one : http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/53ecf3b55950ff21/1e01076a8e16f32c Clear description of the problem, but unsolveable without a link. But given a link, solved in one hit; not even by brilliance just a second-pair-of-eyes. Great example, Rossko. AF, I can see from your previous postings to the group that forum regulars have asked you each time to provide a link, as per the posting guidelines*. I can also attest to the fact that when provided with a link, almost every problem or question I've seen on the group has been resolved. The guidelines are there for a reason - to help us help you! If you can't share your complete implementation, please do try to boil this particular problem down to a reproducible test case. You can use a site like jsfiddle to host the code. Cheers Chris * http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/2b3f101fd509919e -- http://twitter.com/broady -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
Re: [Google Maps API v3] Re: MarkerManager
On 26 November 2011 18:48, AF afils...@serif.com wrote: Andrew not one of your replies have had anything to do with the subject matter, surely you are not replying with this rubbish just to inflate your ego, I thought you were better than that Andrew, nice to hear from you again though. OK... I don't remember anyone reporting a similar issue. Presumably you've searched the group and not found anything, which is why you posted. You asked, Why is the event handler being called twice sometimes? It's entirely possible that you have found a bug in the marker manager; it's also possible that you have made a mistake in your code. Or, something in your code is triggering behaviour which can be avoided by doing it differently. There's not really any way of determining which of those possibilities obtains, given only a description. The issue we have in trying to help is that you have added an event handler into the standard Google module (if I understand your description correctly) which means that it's no longer what Google wrote. And if we felt strongly enough to follow your example and expend time and energy adding such a handler ourselves, hosting it and trying it out, there's no guarantee that we will do what you did. -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Re: zIndex
I read the doc. For those markers in the same group. I want keep the default behavior. That's my trouble comes. I could assign zIndex for each marker, but what is the proper value? -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/fodmJk-o3agJ. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Re: zIndex
On Nov 26, 6:00 pm, john john.c...@aafa-inc.com wrote: I read the doc. For those markers in the same group. I want keep the default behavior. That's my trouble comes. I could assign zIndex for each marker, but what is the proper value? proper value? If you mean what is the default value, I don't know, but you can try using marker.getZIndex() to find out. -- Marcelo - http://maps.forum.nu -- -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Re: zIndex
On Nov 26, 8:15 pm, Marcelo marcelo...@hotmail.com wrote: On Nov 26, 6:00 pm, john john.c...@aafa-inc.com wrote: I read the doc. For those markers in the same group. I want keep the default behavior. That's my trouble comes. I could assign zIndex for each marker, but what is the proper value? proper value? If you mean what is the default value, I don't know, but you can try using marker.getZIndex() to find out. Not sure if it still works this way but: http://groups.google.com/group/google-maps-js-api-v3/browse_frm/thread/43aa989105a6263a/fd1583d3e60dd546?lnk=gstq=.getZIndex+#fd1583d3e60dd546 http://groups.google.com/group/google-maps-js-api-v3/browse_frm/thread/df7f6d4bb351dfc0/41e62b3bc60bfc9b?lnk=gstq=.getZIndex+#41e62b3bc60bfc9b According to the posts above, marker.getZIndex only returns the value that you have previously set with marker.setZIndex -- Larry -- Marcelo -http://maps.forum.nu -- -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Re: 2011/11/7 - New Release (3.7) - editable shapes, DrawingManager, and more
The editable shapes are great. However it's annoying that the markers placed on the polylines are inaccessible. I have a polyline editor but I cannot let the user close the polyline to make a polygon because I cannot put a listener or the first marker. Is there a way to get hold of that marker without resorting to DOM-tricks? -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/RV0Ku0kqfukJ. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Bounding box behavior
Hi everyone, I already asked this question on stackoverflow, but this is probably the better place to ask: I am using Googles Map API v3. Can somebody explain the behavior of the map's bounding boxes to me? Depending on the zoom level these bounds behave weird - when I zoom in it works as expected - the bounds stretch from the lower left corner of the pane to the upper right corner. As soon as I zoom out it get weirds - the bounding box splits up. You can reproduce this with the google examples and the attached code. Just zoom out until the maximum after running the code. The wrong bounding boxes are really annoying - e.g. markers in between are not in the bounds of the map, although they are visible. http://code.google.com/apis/maps/documentation/javascript/examples/map-simple.html http://www.spotdiving.com/bug.png var viewportBox; google.maps.event.addListener(this.map, 'idle', function(event) { var bounds = map.getBounds(); var ne = bounds.getNorthEast(); var sw = bounds.getSouthWest(); var viewportPoints = [ ne, new google.maps.LatLng(ne.lat(), sw.lng()), sw, new google.maps.LatLng(sw.lat(), ne.lng()), ne ]; if (viewportBox) { viewportBox.setPath(viewportPoints); } else { viewportBox = new google.maps.Polyline({ path: viewportPoints, strokeColor: '#FF', strokeOpacity: 1.0, strokeWeight: 4 }); viewportBox.setMap(map); } }); -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/2KmJMArvIx0J. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] HELP!!!
hi there, i just want to draw any two or more lines but they're connected, for instance, i want draw a link between China and USA, and draw another line between Canada and UK. Can you do me a favor on this? Many thx!!! -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Re: 2011/11/7 - New Release (3.7) - editable shapes, DrawingManager, and more
Can you explain further about what you mean by letting the user close the polyline to make a polygon? -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/nnN58Mxhk-8J. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.