[OpenLayers-Dev] Using Google's roads and annotation on top of
jreiser at newrisedesigns.com
Wed Aug 6 11:44:53 EDT 2008
That's how I've been handling it with my site. I'd prefer to keep the
State Plan polygons under the roads/labels. I tried a similar
construction with OpenLayers - I was able to get the roads/labels to
show up alone, with a gray background.
I've switched some other Google Maps mashups to OpenLayers when the
roads/labels weren't necessary. I'd love for OL to have this
functionality. Right now, when presentation is a priority, I stick
with GM, when I need editing tools, tilecaching, etc., I use OL.
On Aug 6, 2008, at 10:20 AM, Andrew Turner wrote:
> On Thu, Jun 26, 2008 at 11:09 PM, Christopher Schmidt
> <crschmidt at metacarta.com> wrote:
>> On Thu, Jun 26, 2008 at 11:02:55PM -0400, John J Reiser wrote:
>>> Hello OpenLayers!
>>> I was wondering if it was possible to overlay the roads/labels
>>> layer from
>>> Google Maps on top of a WMS layer. Right now, using the roads/
>>> labels from
>>> the G_HYBRID_MAP type either creates a layer with a solid gray
>>> or appears under the WMS layer.
>> This is outside the design of OpenLayers. I have seen users hack
>> to do it, but it's hard.
>> The problem is that fixed layers (Google is fixed because when you
>> the map, it doesn't shift) live in a different DOM hierarchy, which
>> makes solving this task more difficult.
>> I would say that at this point, you'd probably be better using Google
>> Maps directly to solve this problem than OpenLayers.
> Outside of OpenLayers specifically, I've done this by loading in
> alternate TileLayers using the Google API (via Mapstraction). You just
> need to get the Tile template URL and lower opacity. It's definitely
> not a terrific solution, but workable.
> It seems like OL could potentially do this as well?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Dev