[Google Maps API v3] Re: Initialize Event NOT on Body Tag

2010-03-02 Thread Chad Killingsworth
I can think of at least 2 options: 1. Don't use an event to load the map at all. Simply place your script tags as the last thing before the close body tags and write them inline. 2. Use addEventListener (or attachEvent for IE) to add a load event handler to the document. See http://www.quirksmode

[Google Maps API v3] Initialize Event NOT on Body Tag

2010-03-02 Thread calibanter
Very new here. But all of the examples I can find has the map object actually returned on the body tag. I've got a php script that gets coordinates out of a database and puts together Google Map v3 Javascript that I can see is correct and I can get to work (by moving the pieces around). BUT I can

Re: [Google Maps API v3] Re: Polylines widths and click events

2010-03-02 Thread Ben Appleton
Great to hear it worked! 2010/3/3 Marc Lacoursière > I have tried it at 25 strokeWeight... it works very well for now. > > >var path = new google.maps.Polyline({ >path: trackpoints, >strokeColor: "#FF", >strokeOpacity: 1.0, >strokeWeight: 2 >}); > >

[Google Maps API v3] Re: Polylines widths and click events

2010-03-02 Thread Marc Lacoursière
I have tried it at 25 strokeWeight... it works very well for now. var path = new google.maps.Polyline({ path: trackpoints, strokeColor: "#FF", strokeOpacity: 1.0, strokeWeight: 2 }); path.setMap(map); var widePath = new google.maps.Polyline({

Re: [Google Maps API v3] Polylines widths and click events

2010-03-02 Thread Ben Appleton
Hi Marc, I suggest rendering a thicker, virtually-transparent polyline underneath. If you set strokeOpacity to 0.01 and strokeWeight to eg. 5, the line should be clickable but not visible. I haven't tried this though, so I'd be interested to hear if this works for you. Cheers Ben 2010/3/3 Marc

[Google Maps API v3] Polylines widths and click events

2010-03-02 Thread Marc Lacoursière
Hello! I have a mapping application that draws polylines having a width of 2 pixels. My current goal would be to allow users to select them easily. Here is how I register the click events: google.maps.event.addListener(path, 'click', function() { Ext.Msg.alert('click on track'); }); It's wo

[Google Maps API v3] Re: Show the map diferent in Iphone, android or web browser

2010-03-02 Thread pete
You need to call your detectBrowser function after the mapdiv is in the DOM and ready to use. Call the function after the mapdiv in your HTML like so: detectBrowser(); Pete On Mar 3, 10:08 am, DevAPI wrote: > I have seen that with this function I can know if the browser is an > Iphone,

[Google Maps API v3] Re: retrieve a set of routes for a route

2010-03-02 Thread Julio Santana
someone? thanks! Julio Santana On 26 fev, 15:30, Julio Santana wrote: > Hello Guys, > > I'm trying to recover through the object GDirections, all routes > a route. > > In the group of version 2 of the api, I was informed that it would be > possible only through the object DirectionsRequest. > >

[Google Maps API v3] Show the map diferent in Iphone, android or web browser

2010-03-02 Thread DevAPI
I have seen that with this function I can know if the browser is an Iphone, an Android or an website. But how can I use this? I must modify this line: ?? ¿Any solution? Thanks ;) function detectBrowser() { var useragent = navigator.userAgent; var mapdiv = document.getElementById("map_canva

Re: [Google Maps API v3] Re: Examples of WMS Overlays?

2010-03-02 Thread Josh Rosenthal
Very nice. Browsing through your code it actually makes it rather straightforward. 1) Create a MercatorProjection class, as per: http://earthalerts.manyjourneys.com/web/js/mapProjection.js 2) Construct an ImageMapType, where getTileUrl converts coord into upper left and lower right points (which

[Google Maps API v3] Re: set Center and Zoom level according to a country

2010-03-02 Thread pete
You need to use the Geocoder service to position a map by location name http://code.google.com/apis/maps/documentation/v3/examples/geocoding-simple.html On Mar 2, 11:17 pm, vincent14 wrote: > Hello > it is not possible to show a Country, without using LatLng and Zoom > factor, but direct with th

[Google Maps API v3] Re: Examples of WMS Overlays?

2010-03-02 Thread KakaduDreamer
I was struggling with this myself. I finally managed to get various WMS-based overlays working using google.maps.ImageMapType http://earthalerts.manyjourneys.com/web/ Try out some of the image overlays under the "Monitoring" and "Other Layers" menus - they use WMS. On Mar 2, 12:50 pm, bratliff

[Google Maps API v3] Re: Examples of WMS Overlays?

2010-03-02 Thread bratliff
On Mar 2, 8:29 pm, Josh Rosenthal wrote: > Hi, > > I was wondering if anyone could point me towards any examples of WMS > overlays using v3. As best as I can tell, I can do it as an ImageMapType, > but I'm confused how I would go from getTileUrl's center coord and zoom to a > WMS bbox. Any examp

[Google Maps API v3] &language xhtml request problem

2010-03-02 Thread yeugeniuss
I have some problems with defining language on my map. Clear "&" is forbidden in xhtml pages. In script it is omitted by //, but in map request http://maps.google.com/ maps/api/js?sensor=false&language=uk"> it is impossible. XHTML error. Is it possible to get language what I need? -- You rec

[Google Maps API v3] Examples of WMS Overlays?

2010-03-02 Thread Josh Rosenthal
Hi, I was wondering if anyone could point me towards any examples of WMS overlays using v3. As best as I can tell, I can do it as an ImageMapType, but I'm confused how I would go from getTileUrl's center coord and zoom to a WMS bbox. Any examples or advice would be most welcome. Thanks, Josh

[Google Maps API v3] Re: FYI: New Release (2010/03/02)

2010-03-02 Thread bratliff
On Mar 2, 6:30 pm, Marcelo wrote: > On Mar 2, 6:44 pm, bratliff wrote: > > > > > Practically every tile produces "Sorry we have no imagery here" error. > > > The V2 demos work. The V3 demos fail. Yesterday, both V2 & V3 were > > OK. > > The V3 demos look fine to me, (currently in Italy). > > --

[Google Maps API v3] Re: FYI: New Release (2010/03/02)

2010-03-02 Thread Marcelo
On Mar 2, 6:44 pm, bratliff wrote: > > Practically every tile produces "Sorry we have no imagery here" error. > > The V2 demos work.  The V3 demos fail.  Yesterday, both V2 & V3 were > OK. The V3 demos look fine to me, (currently in Italy). -- Marcelo - http://maps.forum.nu -- > > Different

[Google Maps API v3] Re: FYI: New Release (2010/03/02)

2010-03-02 Thread bratliff
On Mar 2, 5:34 am, "Susannah (Google Employee)" wrote: > We released a new version of the JS v3 API a few hours ago. If there > are no major issues, we will make a full announcement of this release > in 24-48 hours. Please report in the group if you see any regression > issues. > > Thanks, > Susan

[Google Maps API v3] Re: 2010/02/26: New Release

2010-03-02 Thread shsavage
Hi Luke, Never mind. This does it: google.maps.event.addListener(map, 'mousemove' ,function(event) {var myLat = event.latLng.lat(); var myLon = event.latLng.lng(); var myLoc = "Lat: " + RoundTo(myLat,5) + ", Lon: " + RoundTo(myLon,5);

Re: [Google Maps API v3] Re: update spinner

2010-03-02 Thread Sheldon Goldberg - Dream Realty
Thanks,, Chris - That is what I meant. I've been monkeying around with it. Tried an outside div. Was hoping someone quickly solved already. Thanks again for your response. On Tue, Mar 2, 2010 at 10:36 AM, Chris Apolzon wrote: > I think he's referring to the traditional "ajax is loading spinn

Re: [Google Maps API v3] Stack overflow at line: 13

2010-03-02 Thread Chris Apolzon
Post a sample ;) Use firebug+1. On Tue, Mar 2, 2010 at 10:19 AM, Christoph wrote: > Hi, > > I'm developing a new application in Google Maps API V3. > On Internet Explorer 7 i sometimes get an javascript alert error: > "Stack overflow at line: 13" > After that the application can't be use anymore

Re: [Google Maps API v3] Re: update spinner

2010-03-02 Thread Chris Apolzon
I think he's referring to the traditional "ajax is loading spinning wheel graphic". My guess is that it needs to be placed outside of map_canvas as when you load the API, I'd think it more-or-less hi-jacks that div. On Tue, Mar 2, 2010 at 9:44 AM, Marcelo wrote: > On Mar 2, 3:34 pm, Sheldon Gol

[Google Maps API v3] Re: How to display markers given a zoom level in v3

2010-03-02 Thread ChristofferK
Thanks, will check it out! It wasn't entirely what I had in mind - I wanted to keep the markers hidden on the higher zoom level - but this could work to some extent! Thanks Christoffer On 10 Jan, 23:48, Ben Appleton wrote: > Try Fluster:http://blog.fusonic.net/archives/195 > > > > On Wed, Dec

[Google Maps API v3] Stack overflow at line: 13

2010-03-02 Thread Christoph
Hi, I'm developing a new application in Google Maps API V3. On Internet Explorer 7 i sometimes get an javascript alert error: "Stack overflow at line: 13" After that the application can't be use anymore. How can I determine the cause of this error? Best regards Christoph -- You received this me

[Google Maps API v3] How to add a line break to title

2010-03-02 Thread atagaew
Hi guys. I'm using google map API for generating some objects on the map. When user is rolling the mouse pointer over the object, I'm showing him the description of this object To do that, I'm passing 'title' option with the description to the google.maps.Marker object. My question is how can i

[Google Maps API v3] Re: update spinner

2010-03-02 Thread Marcelo
On Mar 2, 3:34 pm, Sheldon Goldberg - Dream Realty wrote: > > Any suggestions? > Yup. Please read and follow the group's posting guidelines: http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/2b3f101fd509919e# http://groups.google.com/group/Google-Maps-API/web/why-including

[Google Maps API v3] Re: 2010/02/26: New Release

2010-03-02 Thread shsavage
Hi Luke, So far I've not had any luck getting the mouse location in response to the mousemove event. I have tried it this way: google.maps.event.addListener(map, 'mousemove', reportLoc); and this: google.maps.event.addListener(map, 'mousemove', function() {reportLoc(event);});

[Google Maps API v3] update spinner

2010-03-02 Thread Sheldon Goldberg - Dream Realty
Hi - I'm having trouble getting a spinner to work in the map_canvas div if my user changes his search criteria and wants the map to update. I have a spinner div display:none within the map_canvas div, but it doesn't get recognized. Any suggestions? -- Sheldon Goldberg Broker - Dream Realty www.

[Google Maps API v3] mousemove event

2010-03-02 Thread shsavage
I see that the mousemove event has been added to the map. Can you provide an example that reports the mouse location in response to this event? Thanks! -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, sen

[Google Maps API v3] Re: A simple example with 'onclick'?

2010-03-02 Thread AL
Hi All, Case solved! It was another 'var' for position inside the initialize(), inaccessible for the outside click function. Cheers, AL -- 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 googl

[Google Maps API v3] How do I get markers to only get painted in one 'map section'

2010-03-02 Thread Viktor Eriksson
I'm having problems when trying to set the bounds on the map using fitBounds. The map centers on the line that 'divides the world' (+-12h line i guess) Here is a prnt scrn describing my problem: http://frankyboy.se/test/Capture.PNG I tried to reproduce the error on this map: http://frankyboy.se/t

[Google Maps API v3] Re: A simple example with 'onclick'?

2010-03-02 Thread AL
Hi, The map is here: http://zielonyjar.com/lokalizacja/ Under the map there is an image which I want to center the position of the house icon. Thanks for your help. Alex On Mar 2, 9:49 am, vincent14 wrote: > poste a URL to your page please. > have a nice day > vincent -- You received this mes

Re: [Google Maps API v3] Re: A simple example with 'onclick'?

2010-03-02 Thread roman kr
Hi.. there isn't any url, im just trying to understand what version i more suitable for my needs. thanks. On Tue, Mar 2, 2010 at 11:49 AM, vincent14 wrote: > poste a URL to your page please. > have a nice day > vincent > > -- > You received this message because you are subscribed to the Google

[Google Maps API v3] Google street view in API v3

2010-03-02 Thread roman kr
Hi, i'm trying to decide whether to use API v3 or API v2 I need to use google street view API, and i dont see it exists in v3 but i also need a good mobile device support for the regular map. Thanks. Roman. -- You received this message because you are subscribed to the Google Groups "Google M