This is a very nice feature. But the given js-function leads to losing
all of my markers. I'm sure there's a simple and straightforward way
to reload them. Thanks!

steff

On 17 Jul., 18:17, Matt Gilbert <[email protected]> wrote:
> Thanks! That totally worked!
>
> I'm hoping to do some more advanced stuff, generating polygons
> (hopefully server-side) in a KML. I wonder if you or anyone else could
> help point to a place where I can intercept and manipulate the data
> that Exhibit is making. (is it/can it be in KML form?) If you're
> curious, what I'm working on is a more dynamic and faceted in-browser
> version of this:http://www.mattgilbert.net/article/49/treescrapers-map
>
> Thanks!
> Matt
>
> On Jul 15, 10:51 pm, John Callahan <[email protected]> wrote:
>
>
>
> > Hi Matt,
>
> > Yes, this is rather easy to do, at least just to get your map
> > Earth-enabled.  And it looks pretty cool.  I haven't tried anything
> > sophisticated yet with the GE plugin.  One of these days....
>
> > There are several ways to do it but I've only tried one.   First, add a
> > mapConstructor function to your map view
>
> > ex:mapConstructor="newMapConstructor"
>
> > Then, add the javascript function newMapConstructor() somewhere on your
> > page.  Since you are now constructing your own google map from scratch,
> > you need to add a few lines that Exhibit normally does for you.  Here's
> > something that works well
>
> > function newMapConstructor(mapDiv){
> >   map = new GMap2(mapDiv);
> >   map.setCenter(new GLatLng(39.2,-75.4), 8);
> >   map.addControl(new GLargeMapControl());
> >   map.addControl(new GHierarchicalMapTypeControl());
> >   map.addMapType(G_SATELLITE_3D_MAP);
> >   return map;
>
> > }
>
> > The "G_SATELLITE_3D_MAP" control enables the Google Earth plugin (which
> > must be installed on the client to work.)
>
> > You can also add any of the map controls listed 
> > inhttp://code.google.com/apis/maps/documentation/reference.html#GContro...
>
> > Hope this helps.
>
> > - John
>
> > Matt Gilbert wrote:
> > > On the Gogle Earth API site it says "If you have an existing Maps API
> > > site, you can 3D-enable your page with as little as one line of
> > > code." (http://code.google.com/apis/earth/)
>
> > > Has anyone tried this on a Google Maps Exhibit? Seems possible.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" 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/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to