[OpenLayers-Users] Way to detect if layer is done loading?

bradleyspencer brad at cubewerx.com.au
Wed Oct 17 19:30:27 EDT 2007


Marc,

I thank everybody for their interest and help on this matter. I have decided
to go with the CSS solution and not tables.

My demo http://demo.cubewerx.com.au/layerLoad.html is now my final solution.

Cheers,

Brad Spencer
http://www.cubewerx.com.au

-----Original Message-----
From: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org]On
Behalf Of Marc Jansen
Sent: Thursday, 18 October 2007 9:20 AM
Cc: users at openlayers.org
Subject: Re: [OpenLayers-Users] Way to detect if layer is done loading?

Hi list.

I couldn't follow the whole thread, but I would strongly suggest *not*
to use tables for visual effects.

The desired effect might be accomplished using absolute positionin (as
suggested before) or via:

/** CSS **/
#outer {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 0px;
  width: 100%;
  height: 100%px;
  overflow: visible;
  visibility: visible;
  display: block;
  background-color: #ccc;
}

#inner {
  margin-left: -125px;
  position: absolute;
  top: -125px;
  left: 50%;
  width: 250px;
  height: 250px;
  background-color: yellow;
}


<!-- markup -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>centered</title>
</head>
<body>
<div id="outer">
<div id="inner"></div>
</div>
</body>
</html>

I know that this is pretty much of code for a smple effect... but
perhaps it helps.

-- Marc


Erik Uzureau schrieb:

[snip]
> I've had some moderate success using tables, soething like:
>
> <table style="width:100%"><tr><td style="text-align:center">
>     <img id="loadingImage" ...>
> </td></tr></table>
>
[/snip]

_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list