[OpenLayers-Users] openlayers mutiple maps mercator bugs

Jimmy Aumard jimmy.aumard at gmail.com
Mon Apr 19 05:56:10 EDT 2010


Hello,

I try to use mercator example
http://openlayers.org/dev/examples/spherical-mercator.html

But I want a button who toggle 'full screen' and when I change the base
layer this one take the old size.

This is my code when I click on the button:

function togglePleinEcran() {
    var height = $('#carte').css('height');

    if (height != "100%") {
        $('#carte').css('height', '100%');
        $('#carte').css('width', '100%');
    } else {
        $('#carte').css('height', '400px');
        $('#carte').css('width', '600px');

    }

    map.updateSize();
}

It's work the map take the all screen but when I change base layer (google
to bing for example) bing take 600*400 and not 100%

Do you have an idea?

Thanks

-- 
Aumard Jimmy
Développeur

KINAXIA
c/o CICA / PacaEst
2229 Route des Crêtes
F-06560 Sophia Antipolis

Tél.: +33 (0)4 8973 0242
Mob.: +33 (0)6 6017 2827
Fax : +33 (0)4 8307 6583

http://www.kinaxia.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100419/873635de/attachment.html


More information about the Users mailing list