Awesome, thanks! I'll give that a try on Monday --Evan
On Nov 28, 3:13 pm, David Huynh <[EMAIL PROTECTED]> wrote: > Hi Evan, > > Take a look in > > http://static.simile.mit.edu/exhibit/extensions-2.1.0/map/scripts/map... > Near the end, find > > Exhibit.MapView.prototype._select = function(selection) { > var itemID = selection.itemIDs[0]; > var marker = this._itemIDToMarker[itemID]; > if (marker) { > marker.openInfoWindow(this._createInfoWindow([ itemID ])); > } > > }; > > You can override that function (by just adding your own Javascript code > after including exhibit-api.js) to implement the zooming behavior. > Insert something like this inside the if statement > > this._map.setCenter(marker.getLatLng(), 10); > > David > > Schiffty wrote: > > Hi David- > > > I'm using Exhibit, and I've put where I've gotten so far up on > >http://www.evanschiff.com/atw. Basically, if a user clicks on one of > > the blog posts on the timeline, I'd like to make the map to zoom in > > fairly close on the associated marker. > > > Re: Jörn's site, that looks great, but since I'm using Exhibit I'm not > > sure if I can use that code as a reference. The question does occur to > > me, though, is it generally easier (I mean in the end, clearly, since > > getting started on Exhibit is a piece of cake!) to write your own > > mashup if you want more direct control over Google Maps, or can the > > same things be done through Exhibit? > > > Many thanks, > > --Evan > > > On Nov 25, 10:55 pm, David Huynh <[EMAIL PROTECTED]> wrote: > > >> Evan, > > >> Are you using Exhibit or just Timeline and Google Maps? Is there a URL > >> to your site where we can look and see what the problem might be? > > >> David > > >> Schiffty wrote: > > >>> Hi- > > >>> This seems like something that should be simple, but I'm a bit lost as > >>> to how to do it. I have a Timeline and a Map view, and I've overridden > >>> the _showBubble function for the Timeline to put the bubble content > >>> into a different element on the page. But I'd also like to use the > >>> setZoom function on the map at the point when _showBubble is invoked. > >>> My default zoom level is quite wide, since I have points spanning a > >>> good portion of the world, and I'd like to be able to tell the map to > >>> zoom in to a specified level when a user clicks on one of the events > >>> in the Timeline. > > >>> Is there a way to call the Google Maps setZoom function, or something > >>> similar? I can't figure out how to reference it. > > >>> thanks, > >>> --Evan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group. To post to this group, send email to simile-widgets@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---