On Fri, Aug 29, 2008 at 12:41 PM, frank
<[EMAIL PROTECTED]> wrote:
>
> Update, meanwhile I solved the problem with a "plain"
> SATELLITE_3D_MAP in a gadget also using local search:
>
>> after picking Earth once the local search fails
>> (returning "no result").
>
> It behaves when using the new AJAX loader. This is
> not clearly documented for google.maps.LocalSearch,
> but reverse engineering with the code created by the
> map wizard helped to figure it out.
>
> The static map preview also works now, I simply have
> to load it twice, as ordinary image in the #map div,
> and as background image of the real map - a variant
> of Mike's "underlay message" trick, thanks. At some
> point in time I'd need to get rid of the background
> image again...
>
> ...unsolved problem, I'd need a "tiles are ready"
> event. Here is the working gadget (right hand side
> of the link = XML source):
>
> http://gmodules.com/ig/creator?synd=open&nocache=1&url=http://hmdmhdfmhdjmzdtjmzdtzktdkztdjz.googlepages.com/tiny_3D_map.xml
>
> Now the problem, the Earth controls are far too big
> for a tiny gadget, and unnecessary, all can be done
> with a mouse. Therefore I have to get a pointer to
> the Earth instance and switch off the navigation
> controls. The code where I try this is in the RHS
> of the following demo link:
>
> http://gmodules.com/ig/creator?synd=open&nocache=1&url=http://hmdmhdfmhdjmzdtjmzdtzktdkztdjz.googlepages.com/mymaptest.xml
>
> This doesn't work, I always end up with a GEPlugin
> error alert (Earth instance null). This *could* be
> a timeout issue, old box, W2K, modem. Or I simply
> don't know how to get the callback right. Or the
> getEarthInstance function is not designed to be
> called while the SATELLITE_3D_MAP is not visible.
I think the issue is variable collisions.
MapGadget.prototype.earth = function( object )
{ this.earth = object;
so you have a function called earth, on the final MapGadget object,
but then you assign object to this.earth which I think is the same.
(so its trying to overright itself)
I think you just need (bacause when the 'prototype' is being run in
final object )
....
this.gmap.getEarthInstance( this.earthCallback);
...
MapGadget.prototype.earthCallback = function( object )
{ this.earth = object;
...
>
> Interestingly, today GEPlugin tried to send a crash
> report, but unfortunately this also failed, and it
> could not even create its dump. I'm not supposed
> to work as admin, or am I ?
>
> BTW, does anybody here get a location != Hamburg
> with these gadgets ? The new ClientLocation magic
> does not work for my ISP... :-(
I see London.
>
> Frank
> >
>
--
Barry
- www.nearby.org.uk - www.geograph.org.uk -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---