Ticket #2804 (new feature)

Opened 3 years ago

Last modified 2 years ago

Impossible to put a Google layer over a standard layer

Reported by: sbrunner Owned by:
Priority: minor Milestone: 3.0 Release
Component: general Version: SVN
Keywords: patch Cc:
State: Needs More Work

Description

Hello,

Actually It's impossible to put a fixed layer (Google for example) over a non fixed layer (OSM for example).

The goole is to put the googlesat over a plan, made by two layers, in semi-transparency an finally a layer with labels on the top.

This is in part the fault of this changeset :

 http://trac.openlayers.org/changeset/1331

But without it work on all browser except ie.

Than I start to do is to don't add the layers to viewPortDiv but add all layers to layerContainerDiv, and after change the position of each non fixed layers individually.

I speak about this patch Eric is he say that it's probably not a good idea to add an additional argument than I will probably remove it in the future.

The limitations I have with my patch (without it's worth ;-) ):

- I don't succeed to put the virtual earth layers as overlay.

- I don't succeed to put a google/yahoo/OSM layer over a virtual earth layer.

- all the google will have the same z-index

- only on Google or Yahoo layer can be visible in one time.

An probably A problem to solve:

- I don't succeed to change the transparency on the Yahoo layers on ie.

Finally it's patch is in development than tell me if I don't take the best way.

CU

Stéphane Brunner

Attachments

ol.patch Download (6.6 KB) - added by sbrunner 3 years ago.
spherical-mercator-test.html Download (5.6 KB) - added by sbrunner 3 years ago.
The real file I use for the tests
click.html Download (1 bytes) - added by sbrunner 3 years ago.

Change History

Changed 3 years ago by sbrunner

follow-up: ↓ 2   Changed 3 years ago by ahocevar

Question: why don't you make your "plan" semi-transparent, and leave the Google Satellite layer on the bottom? Human perception won't see much of a difference.

in reply to: ↑ 1   Changed 3 years ago by sbrunner

Replying to ahocevar:

Question: why don't you make your "plan" semi-transparent, and leave the Google Satellite layer on the bottom? Human perception won't see much of a difference.

Because my plan I made by two layers (OSM + custom part in fact) an than if I set the opacity to booth layer I will see the masked part of OSM ! Than we really see the difference.

Changed 3 years ago by sbrunner

The real file I use for the tests

Changed 3 years ago by sbrunner

follow-up: ↓ 4   Changed 3 years ago by ahocevar

  • state changed from Needs Discussion to Review

in reply to: ↑ 3 ; follow-up: ↓ 5   Changed 3 years ago by erilem

Replying to ahocevar:

See  http://github.com/sbrunner/openlayers/commit/31309c0dbdda5e7f354cf1abd099e48adb6b1cbf - thanks Stéphane for the patch.

Andreas, what patch is to reviewed exactly? Stéphane's github commit?

in reply to: ↑ 4   Changed 3 years ago by ahocevar

Replying to erilem:

Andreas, what patch is to reviewed exactly? Stéphane's github commit?

exactly.

  Changed 3 years ago by sbrunner

Thanks in advance for review it ;-)

follow-up: ↓ 8   Changed 3 years ago by sbrunner

What about the review ?

in reply to: ↑ 7 ; follow-up: ↓ 9   Changed 3 years ago by erilem

Replying to sbrunner:

What about the review ?

I'll look at it. I just haven't had time for it.

in reply to: ↑ 8   Changed 3 years ago by sbrunner

Replying to erilem:

I'll look at it. I just haven't had time for it.

OK, then I'm waiting ;-)

CU Stéphane

  Changed 2 years ago by sbrunner

  • state changed from Review to Needs More Work

Probably deprecated by #3312

I need to test it.

Note: See TracTickets for help on using tickets.