osherl wrote:
> I would like to customize the Exhibit Map View as follows:
>
> 1. Set the zoom level based on the location of the markers using Google
> Map’s GLatLngBounds() and getBoundsZoomLevel() functions (would be nice to
> have an ex:zoom=auto option).
>
We had that a while back but somehow the feature got lost. The code for
the map viw is here:
http://static.simile.mit.edu/exhibit/extensions-2.0/map/scripts/map-view.js
You can override the Exhibit.MapView.prototype._reconstruct function.
Overriding is not too hard. Just add your own Javascript code after you
include exhibit-api.js, e.g.,
<script>
var oldReconstruct = Exhibit.MapView.prototype._reconstruct;
Exhibit.MapView.prototype._reconstruct = function() {
oldReconstruct.call(this);
// do more things here
};
</script>
> 2. Use the map as a facet. Reduce or increase the number of selected items
> as you zoom in or out.
>
> How can this be accomplished without modifying the Exhibit code? Is it
> doable in an ex:mapConstructor function?
>
This is indeed a feature we have thought of for a while now but haven't
gotten around to experiment. You will need to override the code in the
map-view.js file (see above) in order to get this working. This is not
trivial, but if you get around to experimenting with it, let us know how
that goes!
> By the way, I love Exhibit. I wasn't this excited about a software solution
> since I discovered Google Maps.
>
:-) That's wonderful to know! In many ways Google Maps has been very
inspirational for me, too. It got me to make Timeline, and then Exhibit.
David
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general