Hi Andrea,
Yes, you can add features to the map, including overlays, that is separate
from your Exhibit data. You need to override the function that creates the
map object and then add to it. Luckily, Exhibit offers an easy way to do
this. In this way, these features will not be removed while changing view
panels or facet selections. Add this javascript to your page somewhere:
var map;
var oldMapViewReconstruct = Exhibit.MapView.prototype._reconstruct;
Exhibit.MapView.prototype._reconstruct = function() {
oldMapViewReconstruct.call(this);
map = this._map;
var myLayer = ...anything you want, polygons, ground overlays, etc......
map.addOverlay(myLayer);
};
Regarding your second question on documentation, the best place I can think
of is the wiki. Note that the OpenLayers View is only available in the
Exhibit trunk api. My feeling is that once the latest trunk code gets
released as a stable version, the documentation probably needs to be
reviewed for obsolete functions, added features, etc... However, that takes
people and everyone is rather busy. So, as you work through things, feel
free to make modifications, however small, to the documentation pages.
http://www.simile-widgets.org/wiki/Reference_Documentation_for_Exhibit
- John
**************************************************
John Callahan, Geographic Information Scientist
Delaware Geological Survey, University of Delaware
URL: http://www.dgs.udel.edu
**************************************************
On Wed, Sep 15, 2010 at 7:13 AM, Andrea <[email protected]> wrote:
> Dear all,
> I have been able to build a simple exhibit with three View: Map,
> Timeline and Tabular View.
> I'm really impressed about exhibit project, and I would like to make
> some simple customizations in the Map View.
>
> I did some searches in this group and I have found several interesting
> discussions. I discovered in example that it's possible to add
> polygons and polylines on maps (http://bit.ly/a7Kp7y), that there is
> an OpenLayers Map View extension for Exhibit (http://bit.ly/aljGCP),
> and that Babel can convert from kml to Exhibit JSON (http://bit.ly/
> 9FO262 <http://bit.ly/%0A9FO262>).
>
> I have two kind of questions, one related to my simple goal and a
> general one.
> My goal is to add some polygons to the google map I have in my Map
> View. These polygons could be in my map only a background layer (over
> Google Maps) without any direct relations with my exhibit data. How is
> it possible to achieve this goal?
>
> The second question is related to exhibit documentation. Is there some
> documentation that explain something more about the three spatial
> features I have described above?
> The only way I found to discover something more about was to make a
> reverse engineering of some examples I have found. But I'm not a good
> developer :-(
>
> Thank you very much,
>
> Andrea
>
> --
> 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]<simile-widgets%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/simile-widgets?hl=en.
>
>
--
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.