Hi Steven,

On Nov 14, 2007 12:26 PM, Steven M. Ottens <[EMAIL PROTECTED]> wrote:
> I restored google-spherical support for MapPaneOL. I discovered that it
> is impossible to have two baselayers or to have google as a non
> baselayer. So I opted to destroy the baseLayer in the case there's a
> google layer.
> Could you please review it and comment if this is a proper approach.

Ok, some comments:

I think destroying the baselayer is not an option. But I have a
completely different idea, which might make things simpler and be more
standards compliant, because the context doc will not be mis-used.

See [1]: Therefore, it makes sense to consider a yahoo layer or a
google layer to be at the same level as a WMS Context in your saved
file." (which would be the config in the case of Mapbuilder).

Google Maps is not part of the OWS Context specification. Shouldn't we
treat a Google layer exactly like the empty baselayer? This means that
it would not be added using a context document, but using a config
property of MapPaneOL. And it would not be part of any layer control
tool. Which makes sense, because Google is a typical baselayer and
should always be on the bottom of the layer stack and on.

The same is true for the other commercial map providers (MS, Yahoo,
MM,...). They also use EPSG:9009123.

So the approach would be to add a new config property for MapPaneOL, e.g.
<baselayer>google-hybrid</baselayer>

Layer types would be google-hybrid, google-map, google-satellite and
things like that.

If no baselayer property is given, the empty baselayer will be used.
If there is a baselayer property set, the according layer will be set
as the baselayer, overriding projections of all layers in the context
document to EPSG:900913. This has to be done, because otherwise things
will just not work.

Does that sound like a reasonable approach?

Regards,
Andreas.

[1] http://lists.refractions.net/pipermail/udig-devel/2006-March/004374.html

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
mapbuilder-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel

Reply via email to