Does anyone have a solution for this....

5)  The last few days in IE only, both versions 6 and 7, I noticed
that I am getting an error message (yellow triangle bottom left)
saying GControl Undefined but when I do a refresh everything is fine.
Firefox is perfect.  However, i do not want this happening at all.
Looks ridiculous.  When I check the code, it always brings me the line
"If browser is compatible ()".  I see on google that many people have
put this up as a problem, but i did not see solutions.  It happens
when cache has been full and empty.

I keep getting an error, and the error says

Line: 13
Char: 1
Error: Object Expected
Code: 0


Line 252
Char 2
Error GIcon is undefined

but line 2 is

gicons["colles"] = new GIcon(G_DEFAULT_ICON,"pointer.png");

If i refresh it is fine though.  Plus, it never happens in Firefox.

Also, is there a way to hide the red pointer arrow if using satellite
mode rather than normal.


On Feb 13, 11:15 am, Mike Williams <[email protected]> wrote:
> Wasn't it Patrick who wrote:
>
> > My most important thing I want to achieve in this issue, is that I do
> >not want to see the orange / pink background at all.
>
> You might be able to deal with that by preloading your image.
> Unfortunately that's going to require a bit of code rearrangement.
>
> Also, EInsert.groundOverlay() runs a little faster than
> GGroundOverlay(), because it just displays the image directly rather
> than attempting to adjust the imagery to conform to the Mercator
> projection. (With the something the size of a hospital, the differences
> due to the Mercator projection should be much less than a pixel.)
>
> What you'd need to end up with is the creation of your map happening in
> an onload function, rather than in inline code, so that it happens after
> the page load is complete. (Remember to create your "map" and "hosp"
> variables as globals.)
>
> Then add the preloading of the overlay.jpg image in inline code, so that
> it happens before the onload event.
>
> <script src="einsert.js" type="text/javascript"></script>
> ...
>
> var map;
> var hosp;
> var image = new Image();
>     image.src = "overlay.jpg";
>
> function load() {
>       map = new GMap2(document.getElementById("map"));
>       map.addControl(new GLargeMapControl());
>       map.addControl(new GMapTypeControl());
>       map.setCenter(new GLatLng(53.34010, -6.29563), 17);
>       hosp = EInsert.groundOverlay("overlay.jpg",
>         new GLatLngBounds(new GLatLng(53.33777, -6.30147),
>                           new GLatLng(53.34239, -6.29048)));
>       map.addOverlay(hosp);}
>
> '''
>
> <body onunload="GUnload()" onload="load()">
>
> --http://econym.org.uk/gmap
> The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to