[OpenLayers-Users] issue with DOCTYPEs .

arno arno at renevier.net
Mon Jul 27 15:45:06 EDT 2009


Le mardi 28 juillet 2009, à 00:36:53 +0530, Sanjay a écrit : 
> hey guys,
> 
> Having an issue with DOCTYPEs and OpenLayers - I've broken it down into the
> simplest possible example pages:
> 
> a> With no DOCTYPE (renders fine): http://4words.com/ol/without-doctype.html
> 
> b> With a valid HTML 4.01 Strict Doctype:
> http://4words.com/ol/with-html4-doctype.html
> 
> c> With a valid HTML 5 Doctype: http://4words.com/ol/with-html5-doctype.html.
> 
> b> and c> do not render anything for me at all on all the browsers i tested
> on (opera, chrome, ff). Just removing the DOCTYPE tag makes the controls
> appear.

With a doctype, you need to set dimensions of map element.
For example, if you want map to take all available places:

<div id="map" style="top: 0; left: 0; bottom: 0; right: 0; position: fixed;">

arno
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090727/4a9071b1/attachment.bin


More information about the Users mailing list