Changeset 22673 in spip-zone


Ignore:
Timestamp:
Sep 21, 2008, 10:10:17 AM (13 years ago)
Author:
horaciogd@…
Message:

In order to make 100% x 100% maps you need a tricky style definition.

position:absolute;
bottom:0px;
top:0px;
left:0px;
right:0px;

That is the reason you will not always need width and height in map divs. Using this new parameter, {style=no}, with the #MODELE you can now avoid style in the div and define it via css.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/_dev_/gis/modeles/carte_gis.html

    r22622 r22673  
     1[(#SET{width,#ENV{width,100%}})]
    12[(#SET{width,#ENV{width,100%}})]
    23[(#SET{height,#ENV{height,400px}})]
     
    1112{recherche}{id_article}{id_groupe}{zoom}{type}{latit}{id_carte_gis}{lonxit}{control}{control_type=#ENV{control_type}})]
    1213
    13 <div id="map[(#ENV{id_carte_gis}|?{[(#ENV{id_carte_gis})],1})]" class="carte_gis" style="[width: (#GET{width});][height:(#GET{height});]"></div>
     14<div id="map[(#ENV{id_carte_gis}|?{[(#ENV{id_carte_gis})],1})]" class="carte_gis"[ (#ENV{style}|?{'',style="[width: (#GET{width});][height:(#GET{height});]"})]></div>
     15
Note: See TracChangeset for help on using the changeset viewer.