Sure. Add something like the following, after loading exhibit-api.js
var map;
var oldMapViewReconstruct = Exhibit.MapView.prototype._reconstruct;
Exhibit.MapView.prototype._reconstruct = function() {
oldMapViewReconstruct.call(this);
map = this._map;
map.addOverlay(new GLayer("com.panoramio.all"));
map.addOverlay(new GLayer("org.wikipedia.en"));
//...and do whatever else you like with the map object
}
You can also probably use a mapConstructor, such as here:
http://groups.google.com/group/simile-widgets/browse_thread/thread/32e0be12a6b77ba7/8e2a9ec1ac7c4a68?hl=en#8e2a9ec1ac7c4a68
Your code should also work (I haven't tried it) as long as the
id="map_view" of your map view class.
http://groups.google.com/group/simile-widgets/browse_thread/thread/74f2271118b9e65f/68552917885af174?hl=en#68552917885af174
- John
wvanbusk wrote:
> Any chance that overlays can work with the map extension?
> As in...
> http://googlegeodevelopers.blogspot.com/2008/10/2-lines-of-code-make-world-more.html
>
> I had no luck with:
> exhibit.getComponent("map_view")._map.addOverlay(new GLayer
> ("com.panoramio.all"));
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---