<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:Courier New,courier,monaco,monospace,sans-serif;font-size:10pt"><div style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-size: 10pt;">finally it works, thanks a lot.<br>G.<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Message d'origine ----<br>De : Oliver Christen <oliver.christen@camptocamp.com><br>À : guillaume champlong <goutosig@yahoo.fr>; carto web <cartoweb-users@lists.maptools.org><br>Envoyé le : Lundi, 10 Mars 2008, 16h31mn 56s<br>Objet : Re: [Cartoweb-users] css, template, mainmap<br><br>
<style type="text/css">DIV {
MARGIN:0px;}
</style>
<div>
<div><font size="2">it's a bit complicated so I had a try myself,</font></div>
<div>this should do the trick</div>
<div><font size="2"></font> </div>
<div><body onResize="repos();"></div>
<div> </div>
<div>...</div>
<div> </div>
<div>function repos() {<br> var mapelm = $('map');<br> var posx =
xPageX(mapelm);<br> var posy = xPageY(mapelm);<br> var rootLayer =
mainmap.getDisplay('map').rootDisplayLayer;<br> xMoveTo(rootLayer, posx,
posy);<br> var map = mainmap.getDisplay('map');<br> map._posx =
posx;<br> map._posx = posx;<br> <br> if (typeof(AjaxPlugins)
!= 'undefined'){<br>
AjaxPlugins.Location.Actions.Pan.mapRootLayerTop =
$('map_rootLayer').style.top;<br>
AjaxPlugins.Location.Actions.Pan.mapRootLayerLeft =
$('map_rootLayer').style.left;<br> }<br>}</div>
<div> </div></div>
<blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">----- Original Message ----- </div>
<div style="background: rgb(228, 228, 228) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>From:</b>
<a rel="nofollow" title="goutosig@yahoo.fr" ymailto="mailto:goutosig@yahoo.fr" target="_blank" href="mailto:goutosig@yahoo.fr">guillaume
champlong</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b> <a rel="nofollow" title="cartoweb-users@lists.maptools.org" ymailto="mailto:cartoweb-users@lists.maptools.org" target="_blank" href="mailto:cartoweb-users@lists.maptools.org">carto web</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b> Monday, March 10, 2008 10:33
AM</div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b> Re : [Cartoweb-users] css,
template, mainmap</div>
<div><br></div>
<div style="font-size: 12pt; font-family: times new roman,new york,times,serif;">
<div style="font-size: 12pt; font-family: times new roman,new york,times,serif;">thanks,
I'll try.<br>bye, @+<br><br>
<div style="font-size: 12pt; font-family: times new roman,new york,times,serif;">-----
Message d'origine ----<br>De : Simon Georget <<a rel="nofollow" ymailto="mailto:simon.georget@gmail.com" target="_blank" href="mailto:simon.georget@gmail.com">simon.georget@gmail.com</a>><br>À :
carto web <<a rel="nofollow" ymailto="mailto:cartoweb-users@lists.maptools.org" target="_blank" href="mailto:cartoweb-users@lists.maptools.org">cartoweb-users@lists.maptools.org</a>><br>Envoyé
le : Lundi, 10 Mars 2008, 14h26mn 48s<br>Objet : Re: [Cartoweb-users]
css, template, mainmap<br><br>Pity, indeed..<br><br>Well, one solution would
be to calculate the size of the window and<br>positionning the map dynamically
on each resize.<br><br><br><br>On 3/10/08, Oliver Christen <<a rel="nofollow" ymailto="mailto:oliver.christen@camptocamp.com" target="_blank" href="mailto:oliver.christen@camptocamp.com">oliver.christen@camptocamp.com</a>>
wrote:<br>> it should works but it wont, sadely.<br>> because the
map image is positionned absolutly by the dhtml, based on the<br>>
initial relative position of the map container element.<br>> this is
a limitation of the actual template design.<br>><br>>
regards<br>><br>> Oliver<br>><br>><br>> > Hi
Guillaume,<br>> ><br>> > Your form is a block element
but the map is an image, so an inline<br>> >
element.<br>> ><br>> > to center an inline element you
should use 'text-align:center;'<br>> ><br>> > More
explanation here : <a rel="nofollow" target="_blank" href="http://dorward.me.uk/www/centre/">http://dorward.me.uk/www/centre/</a><br>>
><br>> > It should work ....<br>> > bye,
simon<br>> ><br>> ><br>> ><br>>
> On 3/10/08, guillaume champlong <<a rel="nofollow" ymailto="mailto:goutosig@yahoo.fr" target="_blank" href="mailto:goutosig@yahoo.fr">goutosig@yahoo.fr</a>>
wrote:<br>> >><br>> >> Hi all,<br>>
>><br>> >> I am using cw3.4 on win XP pro.<br>>
>> I have a project in which I would like the table containing the form
and<br>> >> the<br>> >> map to be centered at
any time. For this purpose, I added an id to this<br>> >> table
(id=total) and in cartoweb.css I wrote<br>> >>
#total{<br>> >> margin-left:auto;<br>>
>> margin-right:auto;<br>> >> }<br>>
>><br>> >><br>> >> Unfortunately with this
code, when the windows size changes, the table is<br>> >>
re-centered<br>> >> but the generated image map is not. As a
consequence, an offset appears<br>> >> between the map and the
rest of the table.<br>> >><br>> >> Does anyone
know how to fix this?<br>> >> thanks<br>> >>
G.<br>> >><br>> >>
________________________________<br>> >> Envoyé avec
Yahoo! Mail.<br>> >> Une boite mail plus
intelligente.<br>> >>
_______________________________________________<br>> >>
Cartoweb-users mailing list<br>> >> <a rel="nofollow" ymailto="mailto:Cartoweb-users@lists.maptools.org" target="_blank" href="mailto:Cartoweb-users@lists.maptools.org">Cartoweb-users@lists.maptools.org</a><br>>
>> <a rel="nofollow" target="_blank" href="http://lists.maptools.org/mailman/listinfo/cartoweb-users">http://lists.maptools.org/mailman/listinfo/cartoweb-users</a><br>>
>><br>> >><br>> ><br>> >
_______________________________________________<br>> >
Cartoweb-users mailing list<br>> > <a rel="nofollow" ymailto="mailto:Cartoweb-users@lists.maptools.org" target="_blank" href="mailto:Cartoweb-users@lists.maptools.org">Cartoweb-users@lists.maptools.org</a><br>>
> <a rel="nofollow" target="_blank" href="http://lists.maptools.org/mailman/listinfo/cartoweb-users">http://lists.maptools.org/mailman/listinfo/cartoweb-users</a><br>>
><br>><br>><br><br>_______________________________________________<br>Cartoweb-users
mailing list<br><a rel="nofollow" ymailto="mailto:Cartoweb-users@lists.maptools.org" target="_blank" href="mailto:Cartoweb-users@lists.maptools.org">Cartoweb-users@lists.maptools.org</a><br><a rel="nofollow" target="_blank" href="http://lists.maptools.org/mailman/listinfo/cartoweb-users">http://lists.maptools.org/mailman/listinfo/cartoweb-users</a><br></div><br></div></div><br>
<hr size="1">
Envoyé avec <a rel="nofollow" target="_blank" href="http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52423/*http://fr.docs.yahoo.com/mail/overview/index.html">Yahoo!
Mail</a>.<br>Une boite mail plus intelligente.
<p>
</p><SPAN style="width:100%;height:2px;border-bottom:1px solid rgb(212,208,200); border-top:1px solid rgb(128,128,128);background-color:black;overflow:hidden; margin:8px 0px;"></SPAN>
<p></p>_______________________________________________<br>Cartoweb-users
mailing
list<br>Cartoweb-users@lists.maptools.org<br><span><a target="_blank" href="http://lists.maptools.org/mailman/listinfo/cartoweb-users">http://lists.maptools.org/mailman/listinfo/cartoweb-users</a></span><br></blockquote></div><br></div></div><br>
<hr size="1">
Envoyé avec <a href="http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52423/*http://fr.docs.yahoo.com/mail/overview/index.html">Yahoo! Mail</a>.<br>Une boite mail plus intelligente. </a></body></html>