[Google Maps API v3] Reference Error: google is not defined
Hi All, I am trying to execute javascript through Qt script. My javascript contains code for google maps API. when i ran it through Qt script, it gives an Error like Reference Error: google is not defined. I think the problem is the script type=text/javascript src=http://maps.google.com/maps/api/js? sensor=false /script line from the html file. If I use the brackets, the java script engine won't compile it, and if I omit the line, the program gets the google not found error... Please anyone help me how to call URL inside script tag in javascript which is been executed by Qt script? NOTE: Here, I have included JS and Qt script file. JS file: function calcRoute() { var directionsService = new google.maps.DirectionsService(); // getting error here.google not defined var start = chennai; var end = bangalore; var request = { origin:start, destination:end, travelMode: google.maps.DirectionsTravelMode.DRIVING }; directionsService.route(request, function(resp, status) { if (status == google.maps.DirectionsStatus.OK) { return resp; } }); } QtScript file: #include QApplication #include QtScript #include QScriptEngine int main(int argc, char **argv) { QApplication app(argc, argv); QScriptEngine engine; QScriptValue global = engine.globalObject(); QString fileName1 = direction.js; QFile scriptFile1(fileName1); if(!scriptFile1.open(QIODevice::ReadOnly)) { qDebug() error; } QTextStream stream1(scriptFile1); QString contents1 = stream1.readAll(); scriptFile1.close(); QScriptValue result1 = engine.evaluate(contents1, fileName1); if(engine.hasUncaughtException()) { int line = engine.uncaughtExceptionLineNumber(); qDebug() uncaught exception at line line : result1.toString(); } QScriptValue val1 = global.property(calcRoute); QScriptValueList args1; QScriptValue final_res1 = val1.call(QScriptValue(), args1); // calling JS function calcRoute with no args qDebug() The result is: final_res1.toString(); return app.exec(); } -- 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] waypts.push({location:slat11,stopover:true});
hi friends, I already added 10 waypoints to the waypts array using push.Using that i drawn route also.But Can anyone please tell me how will i remove a waypoint from the waypnt array.Pls reply.. Thanks -- 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: about getArea()
thanks. i want to know that how to use computeLength() and computeArea().please give me an example. 2011/3/2 Rossko ros...@culzean.clara.co.uk i want to know that how to use getArea() in V3. i find it in v2,but don't find it in v3.how to measurement area in v3? thanks a lot. Have you seen the geometry library? http://code.google.com/apis/maps/documentation/javascript/geometry.html#Distance -- 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] Directed Polylines
Hi, I am wondering if its possible to display a directed poly line on a google map using Maps Javascript API V3? At the moment I am just able to draw a simple poly line on the map with no arrows to indicate the direction like : var flightPath = new google.maps.Polyline({ path: [ arr[0],arr[1] ], strokeColor: #FF, strokeOpacity: 8.0, strokeWeight: 2 }); Can someone point out a way of achieving this easily? Cheers, MK -- 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] ClientLogin problem.
Hi, Unlike many here, I am relatively new to Google APIs, so I beg your patience. I am currently tasked with implementing a mapping system which will use Fusion Tables. I have successfully uploaded tables using the Google UI, and written my code to display the map and the FusionTables layer. However, I now need to be able to update the tables programmatically rather than through the Google UI. Clearly this means being able to get my application to log in and upload the data, but I am currently not having any success with the login process. I am sending a POST request to the Google accounts service using VB as follows (stripped down to its basics)... Dim webRequest As WebRequest = webRequest.Create( https://www.google.com/accounts/ClientLogin;) webRequest.Method = POST webRequest.ContentType = application/x-www-form-urlencoded Dim requestStream As Stream = webRequest.GetRequestStream() Dim streamWriter As StreamWriter = New StreamWriter(requestStream) streamWriter.Write(Server.UrlEncode( accountType=GOOGLEEmail=MyEmailPasswd=MyPasswordservice=fusiontablessource=MyApplicationName )) streamWriter.Flush() streamWriter.Close() requestStream.Close() ' Get the response from the remote server... Dim webResponse As WebResponse = webRequest.GetResponse() ... Where MyEmal is my Google account email address, MyPassword is my Google account password, and MyApplicationName is something I made up to represent the application. The GetResponse() is throwing a 403 Forbidden *exception* whether I include the content or not. I did expect from the documentation that I should get a response with an error message and a url giving more information. My questions are... 1) Am I correct in thinking that I should be authenticating using my Google account credentials, or are special credentials required for using Fusion Tables? 2) If special credentials are required, how do I go about obtaining these? 3) If sepecial credentials are not required, can anyone point out any problems with the above code? I have redirected the url to one of our own sites and the posted content certainly looks exactly as it should! Many thanks in advance, David. -- 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: Reference Error: google is not defined
I am trying to execute javascript through Qt script. For questions about how to use Qt, try here http://www.qtcentre.org/forum.php The maps javascript is normally loaded with script tag in a webpage -- 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: Zoom in/out frequently cause null is null or not an object in IE
There is nothing wrong with my HTML code. The problem occures while adding the markers. Doesn't seem to have much to do with the exact same problem, which was about scrollwheel zooming. How about a link to the problem child? http://groups.google.com/group/google-maps-js-api-v3/t/2b3f101fd509919e -- 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] alternative to static maps
Hi, I want to use Googlemaps to display a route. Because the device on which I want see the result have not a fast internet, I looking for something with minimal performance. Google static Maps sound great, at the first moment. But it don't support routing. With Polylines I can show short routes but for long distances I can't use it. So my idea was, to build the Google Map on my server (with asp.net (c#) or php), save it at a picture and the user only need the name of the file. Does it work? I only know, how I can use Google Map with Javascript. If it works, can someone explain how I build a GoogleMap with asp.net and save it? Thank you Sorry for my bad english. -- 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] alternative to static maps
On 3 March 2011 11:15, Xenya testoste...@nurfuerspam.de wrote: I only know, how I can use Google Map with Javascript. If it works, can someone explain how I build a GoogleMap with asp.net and save it? That is against the Terms of Use (10.1, 10.2, 10.3) It would be permitted, I think, to use the Directions Service on the server to get the desired route and then parse the result to construct the url for the static map, which you then include as an img tag in the web page you serve. You wouldn't be saving anything on the server, and you are displaying the route on a Google map. -- 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: Newbie question MARKERS
Thanks guys, thats a great help, its good too know its possible to do this kind of thing with Google Maps thanks again Stephen On 25 February 2011 15:18, geocode...@gmail.com geocode...@gmail.comwrote: On Feb 25, 10:16 am, geocode...@gmail.com geocode...@gmail.com wrote: On Feb 25, 10:00 am, Stephen Foster stephenfoster1...@googlemail.com wrote: Hi guys, I'm new to Google Maps API development so please forgive me if what I'm about to ask is a stupid no brainer question but I've looked through the tutorials and I can't find what I'm looking for. I've read the section in the Documentation to do with Markershttp:// code.google.com/apis/maps/documentation/javascript/overlays.ht... it gives a very clear example of how to add a marker via javascript. Basically you supplied long en lat coordinates and then it will display a marker at that location. But Where I start to lose it, is how you go about GETTING those long and lat coordinates in the first place! I want to set it up so that that a user could click on a location on Google maps and that return the long and lat coord's. If the user is clicking on your Google Maps API v3 map, the click event contains the lat/lng. See: Under Map:Events click MouseEvent This event is fired when the user clicks on the map (but not when they click on a marker or infowindow). http://code.google.com/apis/maps/documentation/javascript/reference.h... Properties latLng LatLng The latitude/longitude that was below the cursor when the event occurred. (there are examples in the documentation and which have been posted to the group that do this) This search should get you started: http://groups.google.com/group/google-maps-js-api-v3/search?group=google-maps-js-api-v3q=click+map+coordinates -- Larry Is this even possible or am I just wanting the moon on a stick? :-) Steve- Hide quoted text - - Show quoted text - -- 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] alternative to static maps
But the problem is, that i need very much coordinates to rebuild a large route on the static map - to much for the url, although wi use coded lines (max characters: 2048). -- 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] alternative to static maps
On 3 March 2011 12:44, Xenya testoste...@nurfuerspam.de wrote: But the problem is, that i need very much coordinates to rebuild a large route on the static map - to much for the url, although wi use coded lines (max characters: 2048). You have to operate within the restrictions, either the legal Terms or technical like url limits. What you could do is simplify the line when you parse it. It's unlikely that you will need *every* point returned from the directions service. -- 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: can i display the marker from 'style id = ' in xml, alongside the placemark using associated 'styleUrl'? also can i show only particular 'style id' set? projected overlay
hey larry, thanks for getting back with this. Only just got round to looking at the example of categories and its code to see what its doing etc and how i can try to adapt it. I only quickly glanced at my kml/xml file and saw the style id that the google map kml gives the markers. i assumed the colours only had one id number. dont get why google gives them different. so yes i'll sort the xml file out definetly, if you could work on a version and use, i guess, the most common id numbers already there to categories the colours that would be brilliant. when we click to hide we will se which arent and make it easy enough to change them in the xml code. erm... the categories example is the perfect function, and i was going to have ago at pulling the appropriate style id for the 'bottom bar' to just associate the correct colour pin. this was first because i thought in the categories example, it adjusts the sidebar links to that of what markers are on show/selected/active, brill! can it do the same to my bottom bar, because if they have the appropriate style id attached, the data is there to differentiate, my logic. (can appreciate my functionality design view isnt probably as easy to render out in code, dont have enough knowledge of the code to realise difficulty) so thats why that was first. i looked at the xml in the categories example to see if easily adaptable (was quick i must add, got pulled away, my initial thought was how can i adapt the lat= lng= to my point where that info is contained. but looking from design, is it hard to switch* type**=**checkbox?* Theatres: input *type**=**checkbox* id=theatrebox onclick=boxclick(this,'theatre') to just using (know this wouldn't work, this is my code thinking) img src=javascript:'Style id=style57' so the type/checkbox is a picture of the pin, not a ticked checkbox? so when they click a pin in the sidebar it hides it so that coloured pin arent on display or in sidebar menu and they have to click the category name again to bring the pin image back up in the sidebar and on the map? (sound conclusion, you hide a pin image, it hides it from the menu - this is beautiful function to me) again, i'm under the assumption (having not a great knowledge of code) these things might be relatively straight forward or they might be time consuming, for me scouring for hours of examples that do it and trying desperately to tweak. well, my thoughts for the hugely brilliant sidebar (you can see why i wanted the links as a bottom bar). i did have ago ones i thought were easy, chnaged true to false for the zoom, just about worked that out. chnaged the javascript set opacity(100) in every format way i could to default loading porjected overlay to 100 inside the {} options for overlay. but no cigar. had the idea (...to skin the cat, as it were...) to load the javascript function as seperate onload event in body or beginning of head, the action is there for a hyperlink, surely it can be accessed the same way with an onload. hopefully get on to it tonight and check those kml style id's if you have time you can post the style id's you used or when i get to i will post them. either way i think i could look for all instance in an example you generate and chnage that number to make it work. really would appreicate your help larry. i've been working hard trying to find funding to get them printed and folded, not just interactive online. chris btw, please share the working examples at your geocodezip. we can shorten the xml data to show it and chnage the overlay image. i'll direct a link over there when it gets to functional level that i can adapt the template of LA for the other places i've rendered in the kml layer approach and contextualise it with headings etc. many thanks On Thu, Mar 3, 2011 at 4:20 AM, geocode...@gmail.com geocode...@gmail.comwrote: On Feb 28, 5:32 pm, geocode...@gmail.com geocode...@gmail.com wrote: On Feb 28, 4:53 pm, Christopher Watson chris.watso...@googlemail.com wrote: hey larry, thanks so much for your help. i knew i'd probably have to copy paste the address details, even if i didnt make this interactive 'bottombar?' got your example working beautifully here: http://visualisationmagazine.com/lacreativemaptest.htm for a while i didnt realise to view source when i kept copy pasting xml from directly as displayed in the browser (reminder for anyone who is as silly as me to do so). again larry, it might be quicky and dirty, but seems to be sustaining refresh's now. thanks. so interactive, just how i'd imagined. * so a few little snags/tweaks if anyone can help.* first 2 below would be luxuries if easy, other two are integral to the design and look (tedious designer here) 1. can i display the marker from 'style id = ' alongside the placemark name in bottombar columns using associated 'styleUrl'? Sure. It would be easier if you used the same style for the same
[Google Maps API v3] Re: waypts.push({location:slat11,stopover:true});
On Mar 3, 1:10 am, Ash aishkrish8...@gmail.com wrote: hi friends, I already added 10 waypoints to the waypts array using push.Using that i drawn route also.But Can anyone please tell me how will i remove a waypoint from the waypnt array. That is a general javascript question (if I understand what you are asking), nothing to do with the Google Maps Javascript API v3: http://www.google.com/search?client=gmailrls=gmq=javascript%20array%20delete%20element -- Larry Pls reply.. Thanks -- 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: marker.setZIndex seems to no longer work
On Mar 3, 4:46 am, Ben Appleton apple...@google.com wrote: When 1 marker changes we just repaint the dirty rectangle around it, so it's quite fast to pop a marker in or out of a tile. There's a minor issue with leaving the tile alone and rendering another copy of the marker in front: translucent markers would suddenly appear to have higher opacity. I agree about additive opacities. How do you repaint a dirty rectangle if your markers are not rectangular without clobbering other markers in the same rectangle ? Are you using drawImage to copy a prototype marker into the tile ? Does it handle overlapping colors opacities correctly ? What globalCompositeOperation do you use ? -- 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: google maps url for use on websites
I would like to simply use links is there a way to create links with a certain address if there is I think this the solution for me -Original Message- From: google-maps-js-api-v3@googlegroups.com [mailto:google-maps-js-api-v3@googlegroups.com] On Behalf Of MartinT Sent: Tuesday, March 01, 2011 8:56 PM To: Google Maps JavaScript API v3 Subject: [Google Maps API v3] Re: google maps url for use on websites Some basic tutorials can be found here: http://code.google.com/apis/maps/documentation/javascript/articles.html Scroll down to to 'Externally hosted' for the 'basic' tutorials. Martin. On Mar 1, 12:07 pm, acbvolos acbvo...@gmail.com wrote: Hello I am new in building websites and I would like some help on how to use google maps to show positions on google maps such as addresses of offices and enterprises generally If someone could help i would apreciate it alot -- 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] Variable in polyline options not accepted?
Hi! I'm working on my website and everything there was done by learning by doing or try and error. Therefor I kept most of my solutions quiet simple :-) I'm sure there will be much better/professional alternatives ... This is the link to the problem ... http://www.alpentourer.at/WebSites/500TourenIntro.php check Deutschland + länger + 0 WP -- submitt by Absenden -- a php script creates different arrays depnding on what options are checked and on the right side a loop will create a tabel with buttons to create / hide polylines (in my actual sample this is blanked ot because of testing the show / hide buttons. OK, so far so good! As long as I write the option e.g. Route0 directly to the options everything works well, BUT when I use the variables sent by the mouseup event and use only - Route - in polyline options, it causes an error. I'm not sure, if this is a specific javasript problem (do I have a javascript syntax error?) or do the polyline options not accept variables. The same problem is with the - RTPoly - Thanks for help, Franz -- 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: about getArea()
http://code.google.com/intl/en/apis/maps/documentation/javascript/geometry.html http://code.google.com/intl/en/apis/maps/documentation/javascript/geometry.html Paulo Fernandes http://www.google.com/profiles/paulofernandesjr http://twitter.com/paulofernandesj +55 11 9797-5974 On Thu, Mar 3, 2011 at 6:13 AM, YeeFung Man angel14yeef...@gmail.comwrote: thanks. i want to know that how to use computeLength() and computeArea().please give me an example. 2011/3/2 Rossko ros...@culzean.clara.co.uk i want to know that how to use getArea() in V3. i find it in v2,but don't find it in v3.how to measurement area in v3? thanks a lot. Have you seen the geometry library? http://code.google.com/apis/maps/documentation/javascript/geometry.html#Distance -- 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. -- 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: alternative to static maps
On Mar 3, 11:15 am, Xenya testoste...@nurfuerspam.de wrote: Hi, I want to use Googlemaps to display a route. Because the device on which I want see the result have not a fast internet, I looking for something with minimal performance. Google static Maps sound great, at the first moment. But it don't support routing. With Polylines I can show short routes but for long distances I can't use it. So my idea was, to build the Google Map on my server (with asp.net (c#) or php), save it at a picture and the user only need the name of the file. Does it work? I only know, how I can use Google Map with Javascript. If it works, can someone explain how I build a GoogleMap with asp.net and save it? If your device supports style=position:absolute; style=position:relative; you can do it with a separate image containing your polys. div style=position:relative; img style=position:absolute;left:0px;top:0px;width:640px;height: 640px; src=googlestatic img style=position:absolute;left:0px;top:0px;width:640px;height: 640px; src=yourpoly /div You will have convert from lat/lon coordinates to pixels. -- 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] Converting from a given pixel x/y value to LatLng on the server
Having taken the example page for Map Coordinates as a starting point - http://code.google.com/apis/maps/documentation/javascript/examples/map-coordinates.html ... I tried to do a the conversion shown here in reverse. Obviously, I have some problems. Here is my pseudo code - 1. Convert pixels to world coordinates x = pixel x / pow(2, zoom level) y = pixel y / pow(2, zoom level) 2. Convert world coordinates to lat/lng Lng = (x – pixel origin x) / Pixels per Longitude in degrees Lat = rad2deg(2 * atan(exp(latRadians)) – pi / 2) where latRadians = (y – pixel orgin y) / Pixels per Longitude in radians Using the output values from the example page : Pixel X : 67247 Pixel Y : 97459 Zoom Level : 10 I get the following results Latitude : 97459 Longitude : 67247 These are conversions I need to do on the server. Can anyone help me correcting the formulas ? Simon -- 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] KmlLayer works on Test site, doesn't work on Live site
Hi All, I have a page with a v3 Map on it (http://www.bd-maps.eu/maps-mx.php) where the a KML overlay (called using KmlLayer) is not working. The problem is it is working on my test site (http://test.mlst.net/maps-mx.php) I've double checked all the server settings and the code is Identical (I'm setting the address passed to KML Layer with a server variable so it's picking up the right address. The address output is valid (it's the same on both sites and works on the test site so it must work). And the MIME type settings are the same on both sites. Does anyone have any idea what could be causing it to not function on the live site? I can't see any differences between the two sites and yet it won't work on the live site. Regards, Chris Powell -- 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: KmlLayer works on Test site, doesn't work on Live site
I can't resolve that host name in DNS. I'm guessing that's your problem since Google probably can't either. Chad Killingsworth -- 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: KmlLayer works on Test site, doesn't work on Live site
Seriously... that's really odd... it's fine here, and from several different locations. We've had visits to the site from the states according to Analytics and if you search for chytridiomycosis europe in google we're at the bottom of the first page. It's really odd you can't see it. On 3 March 2011 14:16, Chad Killingsworth chadkillingswo...@missouristate.edu wrote: I can't resolve that host name in DNS. I'm guessing that's your problem since Google probably can't either. Chad Killingsworth -- 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. -- Christopher Powell MSc chris.i.pow...@gmail.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: KmlLayer works on Test site, doesn't work on Live site
On Mar 3, 6:10 am, Chris Powell chris.i.pow...@gmail.com wrote: Hi All, I have a page with a v3 Map on it ( http://www.bd-maps.eu/maps-mx.php Server not found. If the server isn't publicly available, KmlLayer will not work. -- Larry where the a KML overlay (called using KmlLayer) is not working. The ? problem is it is working on my test site (http://test.mlst.net/maps-mx.php) I've double checked all the server settings and the code is Identical (I'm setting the address passed to KML Layer with a server variable so it's picking up the right address. The address output is valid (it's the same on both sites and works on the test site so it must work). And the MIME type settings are the same on both sites. Does anyone have any idea what could be causing it to not function on the live site? I can't see any differences between the two sites and yet it won't work on the live site. Regards, Chris Powell -- 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 check if a given marker is inside a area
On Mar 3, 5:53 am, Paulo Fernandes paulofernande...@gmail.com wrote: Ok But this is a bug on API, right? I don't know. I didn't investigate it at all. Detecting whether or not a geographic point is within a circle is a special case of a general point-in-polygon algorithm. -- Larry Paulo Fernandeshttp://www.google.com/profiles/paulofernandesjrhttp://twitter.com/paulofernandesj +55 11 9797-5974 On Wed, Mar 2, 2011 at 10:11 PM, geocode...@gmail.com geocode...@gmail.comwrote: Your example does circles only. The link I provided does point in polygon analysis for an arbitrary shaped polygon (in that case the trash pick up regions). Although the example is no where near as simple as yours. -- 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: 2011/3/2 - New Release
Just a note I thought I'd bring up, my clients running older versions of Explorer for their browser are seeing marker images flicker when changing the position of the markers on the map. This appears to be an occurrence with the new release. On Wed, Mar 2, 2011 at 1:01 PM, Chad Killingsworth chadkillingswo...@missouristate.edu wrote: Custom icons - using canvas (in supporting browsers): http://code.google.com/apis/maps/documentation/javascript/examples/icon-complex.html http://code.google.com/apis/maps/documentation/javascript/examples/icon-complex.htmlChad Killingsworth On Wednesday, March 2, 2011 11:59:45 AM UTC-6, pkh80 wrote: Cool! Are the Canvas rendered markers only available if using non-custom markers? Anywhere we can see a reference implementation of this feature? Thanks! -- 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] Re: KmlLayer works on Test site, doesn't work on Live site
Yep, on both my laptop and work computer, BUT not my Android phone so this appears to be bigger than I thought... looks like I need to go and have a conversation with my IT guys. Thanks Chad and Larry for taking the time. Chrsi -- 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: KmlLayer works on Test site, doesn't work on Live site
On 3 March 2011 14:20, Chris Powell chris.i.pow...@gmail.com wrote: Seriously... that's really odd... it's fine here, and from several different locations. We've had visits to the site from the states according to Analytics and if you search for chytridiomycosis europe in google we're at the bottom of the first page. All that means that when Google tried to access your page on 26 Feb 2011 22:17:34 GMT, it could do so. However the cached version can't show your CSS or images. It's really odd you can't see it. I'm in the UK (although using a USA ip address). It's not in DNS (can't ping it). The other system on my desk, with a UK ip address, can't find it either. I can get to your test site, so Google probably can too. You have given us the right url, I suppose? -- 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: Converting from a given pixel x/y value to LatLng on the server
The sample you mentioned has both from/to formula. On Mar 3, 9:10 am, sgiddings mr.s.giddi...@gmail.com wrote: Having taken the example page for Map Coordinates as a starting point -http://code.google.com/apis/maps/documentation/javascript/examples/ma... ... I tried to do a the conversion shown here in reverse. Obviously, I have some problems. Here is my pseudo code - 1. Convert pixels to world coordinates x = pixel x / pow(2, zoom level) y = pixel y / pow(2, zoom level) 2. Convert world coordinates to lat/lng Lng = (x – pixel origin x) / Pixels per Longitude in degrees Lat = rad2deg(2 * atan(exp(latRadians)) – pi / 2) where latRadians = (y – pixel orgin y) / Pixels per Longitude in radians Using the output values from the example page : Pixel X : 67247 Pixel Y : 97459 Zoom Level : 10 I get the following results Latitude : 97459 Longitude : 67247 These are conversions I need to do on the server. Can anyone help me correcting the formulas ? Simon -- 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 maps url for use on websites
I would like to simply use links is there a way to create links with a certain address if there is I think this the solution for me Visit maps.google.com and create links there, which you may then embed on your webpage. -- 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 import?
How to import following url in javascript? Url:http://maps.google.com/maps/api/js?sensor=false If you want a bit of javascript to load some other bit of javascript, you can use asynchronous loading. http://code.google.com/apis/maps/documentation/javascript/basics.html#Async -- 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] Alternate service for geocoding an address.
I'm currently working on an iPhone/iPad application that requires the latitude and longitude of a user's birthplace. To acquire these coordinates, the user would enter a search string containing a varying combination of Address/City/ST/Country, from which would be returned one or more standardized (formatted) address and subsequent lat/lon coordinates. If there is only one returned value, the user would accept it or opt to redo the search. If there are multiple returned values, the user is given the option to select one of the values or redo the search. Once acquired, I need only the lat/lon values, though I do display a map for the purpose of confirmation. My current development incorporates the JavaScript API v3. But, while the current development is for a free application, I will no doubt want to launch a second version (or possibly an upgrade to a premium version for which I will charge a fee. (Why go to all the work of development just for the exercise?) And it takes way too much time to develop the interface and back-end support to just turn around and start all over for a paid version. While the acquisition of this piece of information represents less than 1% of the total work involved in the app development, it is nonetheless critical to the overall application. All the related work has already been completed, and up to now I have used my own 70,000 record zipcode database for this purpose. Unfortunately, 69,000 of the total records are US-based only and I need a more global coverage. I thought that the Google Maps approach would provide an excellent solution, as they have a very sophisticated set of routines. But reading the fine print of their user agreement, I'm not so sure I want to be so restricted with regard to my use of the application in possible (probable) future fee-based apps. WHAT I NEED: I'm wondering if anyone can suggest some good options for an alternate service for the acquisition of geospatial data (lat/ lon) based on the search criteria stated above. Thanks. -- 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: marker.setZIndex seems to no longer work
On Mar 3, 2:44 pm, bratliff bratl...@umich.edu wrote: On Mar 3, 1:10 pm, bratliff bratl...@umich.edu wrote: How do you repaint a dirty rectangle if your markers are not rectangular without clobbering other markers in the same rectangle ? Are you using drawImage to copy a prototype marker into the tile ? Does it handle overlapping colors opacities correctly ? What globalCompositeOperation do you use ? I guess you could use an irregular clipping path. I assumed drawImage used an implicit globalCompositeOperation of COPY. I admit I have not really experimented with it. I know Opera's globalCompositeOperation is inconsistent with other browsers. OK - I believe I have figured it out. You use drawImage to extract the dirty rectangle into a detached CANVAS element. You save it for later replacement. You also make another detached copy of the same rectangle for temporary changes. You paint your changes into one of the copies. You use drawImage to exchange copies in response to mouseover / mouseout. You use a globalCompositeOperation of COPY to cover up any crap underneath your marker. I have a trick you might consider. I have not actually implemented it but I believe it will work. Suppose your tile size is 256 x 256 pixels. Suppose your marker with all of its paraphernalia (shadow, etc.) is 40 x 40 pixels. Suppose the center of your marker happens to coincide with pixel 0:0 of a particular tile. You could break your marker into four pieces in four different tiles. Alternatively, you could use larger overlapping tiles. For each tile: style.left=(tileX*256-20)+px; style.top=(tileY*256-20)+px; style.width=296px; style.height=296px; The marker resides entirely in one tile. The overlapping area of adjacent tiles is transparent. -- 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: about getArea()
On Mar 3, 1:13 am, YeeFung Man angel14yeef...@gmail.com wrote: thanks. i want to know that how to use computeLength() and computeArea().please give me an example. Here is an example that uses computeArea() and compares that result to a ported version of Mike Williams' Area function from his epoly extension: http://www.geocodezip.com/v3_polygon_example_area_geometry.html -- Larry 2011/3/2 Rossko ros...@culzean.clara.co.uk i want to know that how to use getArea() in V3. i find it in v2,but don't find it in v3.how to measurement area in v3? thanks a lot. Have you seen the geometry library? http://code.google.com/apis/maps/documentation/javascript/geometry.ht... -- 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.- Hide quoted text - - Show quoted text - -- 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: Converting from a given pixel x/y value to LatLng on the server
Sorry, Just realised that the values given in my opening post were simply duplicated ... tried to go too quickly. Input values LatLng - pixels Latitude : 41.850033 Longitude : 87.6500522997 Zoom Level: 0 Pixel output : X : 65 Y : 95 Now conversion back to Lat/Lng Latitude : 42.032974332441 Longitude : -88.593750013843 Is this simply a question of the fact that we loose the decimal values for pixels and therefore cannot have sufficient accuracy ? -- 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: Converting from a given pixel x/y value to LatLng on the server
Sorry, Just realised that the values given in my opening post were simply duplicated ... tried to go too quickly. Input values LatLng - pixels Latitude : 41.850033 Longitude : -87.6500522997 Zoom Level: 0 Pixel output : X : 65 Y : 95 Now conversion back to Lat/Lng Latitude : 42.032974332441 Longitude : -88.593750013843 Is this simply a question of the fact that we loose the decimal values for pixels and therefore cannot have sufficient accuracy ? -- 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: Alternate service for geocoding an address.
WHAT I NEED: I'm wondering if anyone can suggest some good options for an alternate service for the acquisition of geospatial data (lat/ lon) based on the search criteria stated above. You must have searched extensively ; try here - http://groups.google.com/group/google-maps-api/web/resources-non-google-geocoders -- 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: Alternate service for geocoding an address.
You must have searched extensively... Where would the world be, without good British sarcasm? The problem isn't the LACK of options, but the extremely large selection thereof. I've already wasted way too much time filtering through the numerous dead-ends. I was hoping that someone might might share their experience related to a previously encountered search to satisfy a similar need. Thanks anyway. On Mar 3, 9:17 am, Rossko ros...@culzean.clara.co.uk wrote: WHAT I NEED: I'm wondering if anyone can suggest some good options for an alternate service for the acquisition of geospatial data (lat/ lon) based on the search criteria stated above. You must have searched extensively ; try here -http://groups.google.com/group/google-maps-api/web/resources-non-goog... -- 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] MarkerImage, size and scaledSize
Hello, I don't understand the MarkerImage constructor and his 'size' and 'scaledSize' parameters... In docs, i can read : *To scale the image, whether sprited or not, set the value of scaledSize to the size of the whole image and set size, origin and anchor in scaled values. The MarkerImage cannot be changed once constructed.* So i use it like this (*my original image size is 40x80 and i would like to /2 his size*): var imgSize = new google.maps.Size(40,80); var imgScaledSize = new google.maps.Size(20,40); var imgScaledOrigin = new google.maps.Point(0, 0); var imgScaledAnchor = new google.maps.Size(10,40); var markerImg = new google.maps.MarkerImage(image, imgScaledSize , imgScaledOrigin, imgScaledAnchor, imgSize); But, when i show this marker, i view only a half-marker... But if i use this : var markerImg = new google.maps.MarkerImage(image, imgSize, imgScaledOrigin, imgScaledAnchor, imgScaledSize); it works... In the docs, i read *set the value of scaledSize to the size of the whole image*. Is it an error ? thanks for your help, -- 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] Adding search function
So far i have got the example working for the displaying data from a database to xml (from php script) to google maps, on the page below, the google maps page: http://www.ykothari.co.uk/gmap-php/gmap-php.html the php script the makes the xml: http://www.ykothari.co.uk/gmap-php/xmlgen.php I want to integrate user search for bus routes to the above example. I'm guessing the [select * from table] query in the php file is getting the data from the dbs, is there a way that user input can change this line in the php file, or maybe some other way; because i only want the map to display the route that the user inputs by say route number. making the entire database to xml isnt worth it since the database has about 58,000 rows, and that would kill my bandwidth / slow down the user experience etc. I saw some example for search but that was using haversine formula which totally went over the top of my head and i'm not quite sure what to search for. The dataset is as follows: https://spreadsheets.google.com/ccc?key=0AqEGwIC84XiqdGZXM2VMS1VPazdrVExsa0t6TjhPWlEhl=enauthkey=CMSJup8M -- 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] Markers from postcode data
Hi We have a CMS featuring membership data one field of which is Postcode information (UK). Is there a way to pass this postcode information (via XML) in the same way you would long|lat information or does this need to be converted first (at either the server or client side)? Regards Cole -- 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] IE8 on production
Hello, I have a google map application that is running on Heroku. This is a very interesting behavior as google maps is basically javascript so hosting shouldn't be an issue. When I run the code in Localhost: 3000 (ruby app) everything works great. So I did a deployment and it looked great on every browser including IE7 but IE8 gave me an error. Here is what happens in the app: 1. Load the page (no errors) 2. Initialize map (no errors) 3. set a ondrag event on the map (no errors) 4. make an ajax call to fetch the locations markers (no errors) 5. set the markers (no errors) After everything is set and done.then it throws an error saying: Failed (main.js on Line 29) the funny thing is that even if I take everything out and let the map just be by it self no ajax call no marker setting... no nothing.. just map... it does the same. I realized later that the map doesn't have any controls so I guess there is where it fails so I disabled them and NO ERRORS until I make the ajax call and try to set the markers. Something is seriously wrong here as it works perfectly on every other browser including IE7 and it only happens when I'm using it from the production server. Any thoughts, -- 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] how to add a image fixed on the map
i want to add a not-filled circle at the center of the map and fix it there even user drag and move the map. I tried to add a absolute position div that contain the circle image on the map but obviously it cant do any interaction with the map when clicingk or dragging inside area of the circle because it is just a div but not a part or overlay of the map. then i tried to add a custom overlay on the map, and set the div appended in panes with fixed left and top value, but it seems not work so guys, any suggestion? -- 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: markers with animated gifs don't work in api v3
I'd be interested in knowing what happened with this as well. My animated gifs were working in V3 up until sometime over the past week. Did a recent update break it? On Mar 2, 1:04 pm, uno radio.apo...@googlemail.com wrote: hello, i'm currently switching from api v2 to v3. in v2, i've used animated gifs here there, but in v3 the animation doesn't work on the normal satellite and road map. (however, they work in street view mode). is this a known issue or did support for animatited gif stop in v3? thanks for tips, uno -- 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: Markers from postcode data
On Mar 3, 6:03 am, Cole Henley p...@cole007.net wrote: Hi We have a CMS featuring membership data one field of which is Postcode information (UK). Is there a way to pass this postcode information (via XML) in the same way you would long|lat information or does this need to be converted first (at either the server or client side)? You would have to geocode it to display anything based on it on the map. Much better to geocode it first. -- Larry Regards Cole -- 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: LatLngBounds order
On Mar 3, 5:43 am, jplozano jploza...@gmail.com wrote: Hi everybody, I'm have this code: var latlngbounds = new google.maps.LatLngBounds(A, B); mapt.fitBounds(latlngbounds); For example, A = London and B = Barcelona gives mehttp://prntscr.com/1lqs5 But when I change it to: A = London and B = Montevideo, it gives mehttp://prntscr.com/1lqsc(map splitted) I have read that this issue depends on the order of A and B. If I reorder the arguments resulting in LatLngBounds(Montevideo, London) instead of LatLngBounds(London, Montevideo) it works just fine. The problem with all this is that A and B are random based on the user input, so I have no clue when to switch from A,B to B,A or viceversa. This is driving me crazy!!! Did you read the documentation on LatLngBounds? http://code.google.com/apis/maps/documentation/javascript/reference.html#LatLngBounds LatLngBounds(sw?:LatLng, ne?:LatLng) Constructs a rectangle from the points at its south-west and north-east corners The two arguments are not A and B, they are SouthWestCorner and NorthEastCorner. If you want a bounds object that contains two arbitrary points, use LatLngBounds.extend on an empty bounds object. -- Larry Thanks in advance. Juan -- 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: Alternate service for geocoding an address.
Ah right, it wasn't clear from your first post that you already know what is available, but your time is too valuable to spend on deciding which best suits your own business, and you'd like someone to do that for you. Okay, well the criteria appears to be global coverage + use in a paid-for commercial app. You can do that with Google's geocoder, although you would have to buy a premier licence. (Bearing in mind, you mentioned in passing showing results on a map ; if that map is a Google map and is only available to paid up customers, you're going to have to get a licence for that anyway) The requirement for global coverage limits the options to a handful. Services like Bing, Mapquest and Yahoo don't come free in this context either, and I'm having to guess that you really wanted freebies? In which case I would suggest OpenStreetMap, and for a new project I guess you'd want to use their new offering Nominatum http://wiki.openstreetmap.org/wiki/Nominatim -- 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: markers with animated gifs don't work in api v3
Sure did: https://groups.google.com/d/topic/google-maps-js-api-v3/LeDqN1ZwY9g/discussion As a workaround, try setting draggable: true on your markers. Chad Killingsworth -- 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: IE8 on production
See https://groups.google.com/d/topic/google-maps-js-api-v3/Kz8QH9UJkZ4/discussion We'll seriously need a link to your site to help at all. Chad Killingsworth -- 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: Converting from a given pixel x/y value to LatLng on the server
Is this simply a question of the fact that we loose the decimal values for pixels and therefore cannot have sufficient accuracy ? I think so; at zoom level 0, each pixel represents a fair few square miles. -- 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: markers with animated gifs don't work in api v3
I've noticed that you can get animated GIF markers to work if you use the MarkerImage overload of Marker.setIcon instead of the String: Instead of: myMarker.setIcon(myIconUrl); try: var myIcon = new google.maps.MarkerImage(myIconUrl); myMarker.setIcon(myIcon); On Mar 3, 10:25 am, DJGorman dan.j.gor...@gmail.com wrote: I'd be interested in knowing what happened with this as well. My animated gifs were working in V3 up until sometime over the past week. Did a recent update break it? On Mar 2, 1:04 pm, uno radio.apo...@googlemail.com wrote: hello, i'm currently switching from api v2 to v3. in v2, i've used animated gifs here there, but in v3 the animation doesn't work on the normal satellite and road map. (however, they work in street view mode). is this a known issue or did support for animatited gif stop in v3? thanks for tips, uno -- 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] problem with ProjectedOverlay remove()
Hi folks, I'm using the library ProjectedOverlay.js version 05/2009 with GM API v3. The transparency options are ok but I have a problem using the method remove. You can find an example here: http://www.usnaviguide.com/v3maps/ProjectedOverlayTest.htm Clicking the Remove Overlay link crashes the overlay class with a stack overflow. The remove function in ProjectedOverlay.js is recalled in an infinite loop when calling this.setMap(null). I don't know if there is a newer version of this library or if anyone knows how to solve this problem Any help is appreciated, Bernat -- 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: problem with ProjectedOverlay remove()
On Mar 3, 12:03 pm, bernat bernat.puigdomen...@gmail.com wrote: Hi folks, I'm using the library ProjectedOverlay.js version 05/2009 with GM API v3. The transparency options are ok but I have a problem using the method remove. You can find an example here:http://www.usnaviguide.com/v3maps/ProjectedOverlayTest.htm Clicking the Remove Overlay link crashes the overlay class with a stack overflow. The remove function in ProjectedOverlay.js is recalled in an infinite loop when calling this.setMap(null). I don't know if there is a newer version of this library or if anyone knows how to solve this problem I think the version of ProjectedOverlay in the geoxml3 project has been updated to fix a couple of issues. You might see if that one works better: http://geoxml3.googlecode.com/svn/trunk/ProjectedOverlay.js (it seems to fix the problem for me) -- Larry Any help is appreciated, Bernat -- 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] How to save geolocations?
How can I put the location of a marker I place on a map into a hidden input field? 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: problem with ProjectedOverlay remove()
Yes ! this version fixes the bug. Thank you Larry, Bernat On Mar 3, 3:11 pm, geocode...@gmail.com geocode...@gmail.com wrote: On Mar 3, 12:03 pm, bernat bernat.puigdomen...@gmail.com wrote: Hi folks, I'm using the library ProjectedOverlay.js version 05/2009 with GM API v3. The transparency options are ok but I have a problem using the method remove. You can find an example here:http://www.usnaviguide.com/v3maps/ProjectedOverlayTest.htm Clicking the Remove Overlay link crashes the overlay class with a stack overflow. The remove function in ProjectedOverlay.js is recalled in an infinite loop when calling this.setMap(null). I don't know if there is a newer version of this library or if anyone knows how to solve this problem I think the version of ProjectedOverlay in the geoxml3 project has been updated to fix a couple of issues. You might see if that one works better:http://geoxml3.googlecode.com/svn/trunk/ProjectedOverlay.js (it seems to fix the problem for me) -- Larry Any help is appreciated, Bernat -- 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] polyline editor
Can anyone point me to a v3 map editor that is similar to the one here http://gmaps-samples.googlecode.com/svn/trunk/poly/mymapstoolbar.html What I am mainly interested in is allowing the user to select from a menu the type of line or route (i.e. category such as walk, bike, run) they wish to draw. The lines need to be drawn on one map and they need to be able to edit/ delete the line. When the map is done the user will hit continue and the lines will be saved to the server. An links to examples is appreciated. -- 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] How to save geolocations?
Simple, use Javascript :D Paulo Fernandes http://www.google.com/profiles/paulofernandesjr http://twitter.com/paulofernandesj +55 11 9797-5974 On Thu, Mar 3, 2011 at 5:12 PM, Soluphia animod...@gmail.com wrote: How can I put the location of a marker I place on a map into a hidden input field? 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. -- 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: Zoom in/out frequently cause null is null or not an object in IE
You can see the problem here; http://code.google.com/intl/tr/apis/maps/documentation/javascript/examples/marker-simple.html Just open it with IE (I'm using IE8) and zoom in and out quickly with your mouse wheel. You will have the 'null', is null or not an object error. This is the google's very own sample page. I remember this problem occured in version 2. Hasn't it resoved yet? On 3 Mart, 12:09, Rossko ros...@culzean.clara.co.uk wrote: There is nothing wrong with my HTML code. The problem occures while adding the markers. Doesn't seem to have much to do with the exact same problem, which was about scrollwheel zooming. How about a link to the problem child?http://groups.google.com/group/google-maps-js-api-v3/t/2b3f101fd509919e -- 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 save geolocations?
function getinfo() { //document.getElementById(alerts).value = (position.coords.latitude + ',' + position.coords.longitude); alert (position.coords.latitude); document.getElementById(alerts).value = (position.coords.latitude); } google.maps.event.addDomListener(window,'load', initialize); google.maps.event.addDomListener(window,'load', getinfo); /script div id=map_canvas style=margin-top:10px;width:100%; height: 300px/div input type=hidden id=alerts name=alerts value= / On Mar 3, 4:01 pm, Paulo Fernandes paulofernande...@gmail.com wrote: Simple, use Javascript :D Paulo Fernandeshttp://www.google.com/profiles/paulofernandesjrhttp://twitter.com/paulofernandesj +55 11 9797-5974 On Thu, Mar 3, 2011 at 5:12 PM, Soluphia animod...@gmail.com wrote: How can I put the location of a marker I place on a map into a hidden input field? 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. -- 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: marker.setZIndex seems to no longer work
Esa We will soon add a robust way to bring a marker to the front. Please, don't forget to add also a robust way to put it back to its initial zIndex value. Ben The issue here is that some sites are happy with the default z- indexing (by height), but want to bring a marker to the front on hover. Yes, it's my case. -- 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: Converting from a given pixel x/y value to LatLng on the server
On Mar 3, 7:40 pm, Rossko ros...@culzean.clara.co.uk wrote: Is this simply a question of the fact that we loose the decimal values for pixels and therefore cannot have sufficient accuracy ? I think so; at zoom level 0, each pixel represents a fair few square miles. Actually, 256 pixels represent the circumference of the Earth (approximately 25,000 miles) at zoom level 0. -- 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 save geolocations?
function addmarker(){ // add the marker document.getElementById(hiddenfield).value = position.coords.latitude + , + position.coords.longitude ? } On 3 Mrz., 22:21, Soluphia animod...@gmail.com wrote: function getinfo() { //document.getElementById(alerts).value = (position.coords.latitude + ',' + position.coords.longitude); alert (position.coords.latitude); document.getElementById(alerts).value = (position.coords.latitude);} google.maps.event.addDomListener(window,'load', initialize); google.maps.event.addDomListener(window,'load', getinfo); /script div id=map_canvas style=margin-top:10px;width:100%; height: 300px/div input type=hidden id=alerts name=alerts value= / On Mar 3, 4:01 pm, Paulo Fernandes paulofernande...@gmail.com wrote: Simple, use Javascript :D Paulo Fernandeshttp://www.google.com/profiles/paulofernandesjrhttp://twitter.com/pau... +55 11 9797-5974 On Thu, Mar 3, 2011 at 5:12 PM, Soluphia animod...@gmail.com wrote: How can I put the location of a marker I place on a map into a hidden input field? 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. -- 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] polyline editor
https://github.com/stomlinson/Polyline-enableEditing-enableDrawing-for-GMaps-API-v3 http://www.mistechko.sumy.ua/jscript/google/map/index.html -- 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] Is there any API like ver2.x which can use other map service as overlay?
Hi, everybody. *At v2, what I used:* var tileLayerOverlay = new GTileLayerOverlay( new GTileLayer(null, null, null, { tileUrlTemplate: 'http://host infos...width=256height=256imageFormat=gifx={X}y={Y}z={Z}', isPng:false, opacity:0.3 }) ); map.addOverlay(tileLayerOverlay); *At v3, what I am using:* var overlayMap = new google.maps.ImageMapType({ getTileUrl : function(coord, zoom) { return ''http://host infos...width=256height=256imageFormat=gifx=' + coord.x + 'y=' + coord.y+ 'z=' + zoom; }, tileSize : new google.maps.Size(256, 256), isPng : false, opacity : 0.3 }); map.overlayMapTypes.push(GoogleMapsV3.currentMap); *Both of above are rendered successfully.* And now, what I want to comfirm *is not implementation* but *business aspect * which described at last post. Best Regards, Gising_me -- 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] Is there any API like ver2.x which can use other map service as overlay?
Hi, everybody. *At v2, what I used:* var tileLayerOverlay = new GTileLayerOverlay( new GTileLayer(null, null, null, { tileUrlTemplate: 'http://host infos...width=256height=256imageFormat=gifx={X}y={Y}z={Z}', isPng:false, opacity:0.3 }) ); map.addOverlay(tileLayerOverlay); *At v3, what I am using:* var overlayMap= new google.maps.ImageMapType({ getTileUrl : function(coord, zoom) { return ''http://host infos...width=256height=256imageFormat=gifx=' + coord.x + 'y=' + coord.y+ 'z=' + zoom; }, tileSize : new google.maps.Size(256, 256), isPng : false, opacity : 0.3 }); map.overlayMapTypes.push(overlayMap); *Both of above are rendered successfully.* And now, what I want to comfirm *is not implementation* but *business aspect * which described at last post. Best Regards, Gising_me -- 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: Having troubles with path
Yeah, just changed it to this and it worked: var coordinates = ? echo ($row[coordinates]); ?; :D The issue I have now is that if the user moves the map (Google Maps 'idle' event), the code will draw any routes of which have a center within the current bounds. The issue here is if I move the tiniest bit, the routes are still within the bounds and it draws them AGAIN. I obviously need a remove Overlays style method at the beginning of the addRoute method, but my current code is not working. for (i=0; ipathArray.length; i++) { poly = new google.maps.Polyline({ path: pathArray[i] poly.setMap(null); }); } Ive also tried: for (i=0; ipathArray.length; i++) { pathArray[i].setMap(null); } any ideas guys?? Thank you very much, Rick -- 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 save geolocations?
Thank you! Oddly, only document.getElementById(hiddenfield).value = 'hallo'; works but why? Btw, alert(position.coords.latitude + , + position.coords.longitude); displays the correct values. On Mar 3, 6:12 pm, en4ce djen...@googlemail.com wrote: function addmarker(){ // add the marker document.getElementById(hiddenfield).value = position.coords.latitude + , + position.coords.longitude ?} On 3 Mrz., 22:21, Soluphia animod...@gmail.com wrote: function getinfo() { //document.getElementById(alerts).value = (position.coords.latitude + ',' + position.coords.longitude); alert (position.coords.latitude); document.getElementById(alerts).value = (position.coords.latitude);} google.maps.event.addDomListener(window,'load', initialize); google.maps.event.addDomListener(window,'load', getinfo); /script div id=map_canvas style=margin-top:10px;width:100%; height: 300px/div input type=hidden id=alerts name=alerts value= / On Mar 3, 4:01 pm, Paulo Fernandes paulofernande...@gmail.com wrote: Simple, use Javascript :D Paulo Fernandeshttp://www.google.com/profiles/paulofernandesjrhttp://twitter.com/pau... +55 11 9797-5974 On Thu, Mar 3, 2011 at 5:12 PM, Soluphia animod...@gmail.com wrote: How can I put the location of a marker I place on a map into a hidden input field? 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. -- 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] iPhone display of in-page google maps
Recently got an iPhone and discovered that my pages with google maps don't display properly. They always appear in larger font than expected, and then the map doesn't perform as expected. Example pages are http://bullittcountyhistory.org/cem/sections.html and http://bullittcountyhistory.org/cem/shepherdsville.html . I tried to find some help in the discussions here, but I'm confused about what the problem is as well as how to fix it. Please help. Thanks, Charlie -- 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: about getArea()
thank you very much!!! 2011/3/3 geocode...@gmail.com geocode...@gmail.com On Mar 3, 1:13 am, YeeFung Man angel14yeef...@gmail.com wrote: thanks. i want to know that how to use computeLength() and computeArea().please give me an example. Here is an example that uses computeArea() and compares that result to a ported version of Mike Williams' Area function from his epoly extension: http://www.geocodezip.com/v3_polygon_example_area_geometry.html -- Larry 2011/3/2 Rossko ros...@culzean.clara.co.uk i want to know that how to use getArea() in V3. i find it in v2,but don't find it in v3.how to measurement area in v3? thanks a lot. Have you seen the geometry library? http://code.google.com/apis/maps/documentation/javascript/geometry.ht. .. -- 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.- Hide quoted text - - Show quoted text - -- 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] Best ways to stay current with API changes
Is there a recommended practice for making sure code remains supported through API changes? It's irritating to have a bunch of commands be deprecated if I want to make use of new ones. Thanks! -- 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] update a route
hi friends, I have already drawn a route using directionsDisplay.setMap(map); and a source and destination.and if i want continue this route(with another two ponits,one,the previous destination(ie the new source ) and the next points(the new destination).Is there any way to update this new route to the previous route. help thanks -- 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: can i display the marker from 'style id = ' in xml, alongside the placemark using associated 'styleUrl'?
On Feb 28, 4:53 pm, Christopher Watson chris.watso...@googlemail.com wrote: hey larry, thanks so much for your help. i knew i'd probably have to copy paste the address details, even if i didnt make this interactive 'bottombar?' got your example working beautifully here:http://visualisationmagazine.com/lacreativemaptest.htm for a while i didnt realise to view source when i kept copy pasting xml from directly as displayed in the browser (reminder for anyone who is as silly as me to do so). again larry, it might be quicky and dirty, but seems to be sustaining refresh's now. thanks. so interactive, just how i'd imagined. * so a few little snags/tweaks if anyone can help.* first 2 below would be luxuries if easy, other two are integral to the design and look (tedious designer here) 1. can i display the marker from 'style id = ' alongside the placemark name in bottombar columns using associated 'styleUrl'? Like this? http://www.geocodezip.com/geoxml3_test/v3_geoxml3_kmltest_icon_linkto.html?filename=http://www.geocodezip.com/geoxml3_test/visualisationmagazine_com_lacreativemap_kml.xml -- Larry 1. also can i show only particular 'style id' set. so e.g. i have red markers, yellow markers and blue markers. can i click blue so to hide red and yellow? would really enhance the usability of the map when there are so many markers. i have managed to use projected overlay eg here;http://www.geocodezip.com/geoxml3_test/ProjectedOverlayTest.html and make it work here:http://visualisationmagazine.com/lacreativemaptest.htmyay! 1. but, does it automatically load semi transparent? 50% opacity 'ish? can it load fully as 100%, just a picture laid over the top like i did here: http://visualisationmagazine.com/lacreativemap.htm lastly, 1. why oh why, can i not stop it zooming out to like 4, when i've set to 12, and even put listeners into set 12? var zoomLevel; google.maps.event.addListener(map, 'zoom_changed', function() { zoomLevel = map.getZoom(); if (zoomLevel == 0) { map.setZoom(12); } }); i know i posted a lot, and trust me i trowl through examples at geocodezip.com. i did one code line paste at a time doing the projected overlay example through trial error and make it work. hope people can help. many thanks again larry, and everyone. please help, its so close. ps apologies for any typos or if it isnt clear, i do check it, its late. need a few z's -- 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] how to include header file in javascript?
Hi All, How to inlclude header file (like #include in c ) in javascript? If anyone knows, please tell me. I tried using import. but it gives an error import is not defined Note: I am not using browser for executing javascript. Please Keep that in mind. Thanking You -- *Regards,* *Karthick * -- 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.