You are right, the photos are not only the wrong size, but vary in size and shape.
I have less control over the sizes of the images on my photo server (s). They are not the same size as what I need for optimal sizing in the infoWindows. In the best of all worlds they would all be standard sizes for both the small and large size used in the map with possibly an account taken for landscape and portrait aspect. If I hosted my own photos, I could do that (with a good bit of work) but they are hosted on a couple of sites (which are free) and which have their own standard sizes. Things are looking a bit better. I've also started testing with Safari and Chrome, which, because they are faster, cause new timing problems. But I think the version out there now is good on all 4 browsers (Firefox, IE, Chrome, Safari). Boy, is IE ever slow, especially with (the not especially great) number of markers in use and with the polylines I use. It is especially slow on the polylines. It must take 10 times what the other browsers take. Tell me, how can Microsoft not be embarrassed by this product? (I digress, sorry - more topic creep). On Oct 28, 5:36 pm, squirly <[email protected]> wrote: > Another thing I noticed was that if the image isnt the same size as > that specified in the XML (or whatever) then resizing takes place and > that impacts load times abit. > > On Oct 26, 6:25 pm, "[email protected]" <[email protected]> > wrote: > > > On Oct 26, 3:16 pm, Papa Bear <[email protected]> wrote: > > > > I have a map with a fair number of markers, each with a bit of > > > information that gets displayed in theinfoWindow. The markers > > > represent boundary monuments on the US - Canadian border. Here's the > > > map: > > > >http://members.bellatlantic.net/~vze2h6gy/papabear/BM_Station_GMap.ht... > > > > Some of the markers (about 20 out of the total of several hundred) > > > also display a thumb nail photo. These are the ones I have actually > > > visited, > > > > The map is generated client-side and it's all vanilla java script. > > > The data is in a separate .js file and consists of several arrays of > > > objects. Although I am still tinkering with the code, functionally it > > > basically works, (although like many others it was written and > > > debugged using Firefox, so I haven't checked every last little feature > > > under IE). > > > > Theproblem: all the verbal content comes from the server where my map > > > comes from, so it is generally all resident on the client's PC once > > > the thing gets loaded. The photos, however, come from another server > > > and they are generally only pulled down when the info Window is > > > created. They are specified using html <img ...> tags. Most times > > > things work fine, but a noticeable fraction of the time the text will > > > appear and theinfoWindowwill be brought up before the photo > > > arrives. When it does arrive, it gets put where it belongs, but more > > > often than not, it will go outside the bounds of theinfoWindow. > > > > I have a general idea how large the thumbnails with be, but a goodly > > > number have an odd aspect ratio which I can't predict in advance, so I > > > can't just pre allocate the right > > > amount of space in the <div ...> that holds the <img ...>. > > > > I can do an updateInfoWindow(), and that indeed works, but I don't > > > know when to do it. If I wait say 250 msec and call it, it may be too > > > soon or too late. And when I do it too far out, I get an annoying > > > flicker. > > > > Any suggestions? Any one know a way to tell when the photo gets > > > loaded? Is there some Dom event for that? How do fancy professional > > > sites handle this sort of thing? > > > > If you want to see the affect, try clicking on the markers with these > > > names of the map: > > > Hereford > > > Beecher Tablet > > > Hill Tablet > > > Metallak > > > Pros (which is hiding behind Spect) > > > the unlabeled marker on the upper right end of the border > > > the unlabeled marker on the lower left end of the border > > > the unlabeled marker at the upper left, where the green markers start. > > > > I you have fast service to my photo server, maybe you won't see the > > >problem. For me it's about 50 / 50. > > > What I do for cases like that is include the width and height of the > > image as I want it to appear in theinfoWindowin the xml (or database > > entry), then add them to the html that loads the image into theinfoWindow. > > > I have seen discussions of loading the image and including an onload > > event for the image then having the browser determine the size. You > > might be able to use an image onload event to resize yourinfoWindow. > > > -- Larry --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en -~----------~----~----~----~------~----~------~--~---
