I added back in the baseIcon.iconSize = new GSize(18, 24);
What's strange is that everything appears to load fine but when I attempt to click on an icon - no EWindow pops up. On May 26, 8:06 pm, "geocode...@gmail.com" <geocode...@gmail.com> wrote: > On May 26, 4:14 pm, mp- <miche...@gmail.com> wrote: > > > @Larry > > > Yes, I removed the line: > > > baseIcon.iconSize = new GSize(18, 24); > > > As a previous commenter said IE7 was erroring on that line. When I > > removed it, everything on my working version still worked (http:// > > tinyurl.com/withoutewindow ) > > That wasn't the "right" way to fix it. You needed to make GSize > available at that point in your code, not remove the line. Removing > one of the required GIcon properties may cause undesired behavior. > See the "Required parameters" section of this page from Mike Williams' > tutorial:http://econym.org.uk/gmap/custom.htm > > > > > So how do I address the timing issue? > > > What I want to do is load Google Maps as fast as possible but also use > > the EWindow. I thought reverting my > > http://tinyurl.com/withewindow > > > code to using the old loader would address the timing. > > You could be correct, this code: > FORM_DATA = getUrlVariables(); > > if (FORM_DATA['city'] != undefined) { > // if the city is defined in the query string, create the > // map center on that city & update the city search field > city = FORM_DATA['city']; > document.getElementById('city-field').value = city; > } > > showHomesOnMap(city); > > used to be in the callback routine, now it is inline. It could very > well be OK as is. But I don't know that for sure without doing more > analysis than I have time for right now. > > -- Larry > > > > > Thanks in advance > > > On May 26, 6:10 pm, "geocode...@gmail.com" <geocode...@gmail.com> > > wrote: > > > > On May 26, 4:00 pm, mp- <miche...@gmail.com> wrote: > > > > > I've removed the GSize element > > > > > @Larry - I switched back to using the old way to load google maps > > > > > <script src="http://maps.google.com/maps? > > > > file=api&v=2&sensor=false&key=MY_KEY" type="text/ > > > > javascript"></script> > > > > > Now it seems like my map isn't loading at all now. > > > > > Any ideas. Thanks for the help. > > > > You also removed this: > > > baseIcon.iconSize = new GSize(18, 24); > > > > And haven't addressed the timing dependencies. > > > > I did a quick test and added a normal load of the API before the > > > include of the ewindow.js, but left your jsapi loader alone and it > > > seemed to work (it isn't on your server, so it doesn't get any actual > > > data, but it didn't get the GSize error). You wouldn't want to do it > > > like that for real (it loads the API twice), you either want to use > > > the dynamic loader, and work through the dependencies or use the > > > normal loader and work through the timing. > > > > -- Larry > > > > > On May 26, 5:48 pm, "geocode...@gmail.com" <geocode...@gmail.com> > > > > wrote: > > > > > > On May 26, 3:14 pm, mp- <miche...@gmail.com> wrote: > > > > > > > @Larry, @Ross, @all > > > > > > > Here is my code without using EWindow > > > > > > >http://tinyurl.com/withoutewindow > > > > > > > Here is my code using EWindow > > > > > > >http://tinyurl.com/withewindow > > > > > > I get a straight forward javascript error GSize is undefined. > > > > > > You need to load the API before the ewindow javascript. You are using > > > > > the jsapi loader, so you need to load it in the callback routine, > > > > > before using it on the map. > > > > > > -- Larry > > > > > > > Any ideas why it's not working? I've added some alert messages to > > > > > > help pinpoint where the script breaks. > > > > > > > Thanks > > > > > > > On May 22, 1:26 pm, Rossko <ros...@culzean.clara.co.uk> wrote: > > > > > > > > > The script execution stops immediately after the following line > > > > > > > > of > > > > > > > > code: > > > > > > > > > map.addOverlay(ew); > > > > > > > > > Any ideas? > > > > > > > > Yes, there's something wrong in your code. > > > > > > > We can't see your > > > > > > > code.http://groups.google.com/group/Google-Maps-API/web/suggested-posting-... > > > > > > > > cheers, Ross K- Hide quoted text - > > > > > > > - Show quoted text -- Hide quoted text - > > > > > - Show quoted text -- Hide quoted text - > > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to Google-Maps-API@googlegroups.com To unsubscribe from this group, send email to google-maps-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---