When I ask OL to fetch WMS layers, they get stuffed into automatically
generated divs with ids like "OpenLayers.Layer.WMS_283" and
"OpenLayers.Layer.WMS_285" and so on. The numbers at the end seem to
be increasing by 2, but what number they start with doesn't seem to be
predictable. Layers drawn before these specific layers have 35, 37,
39, 41 tacked on the end.
The aforementioned div, one per layer, has another div with no id or
name, and within that div is the actual img with an id like
"OpenLayersDiv293" (the image 293 is inside div 283). Here is the
strange thing... there are actually two images within that numbered
div. It actually looks like so (easier to show the code than to
describe it)
<div id="OpenLayers.Layer.WMS_283">
<div><img id="OpenLayersDiv293" src="..?layers=one"></div>
<div><img id="OpenLayersDiv347" src="..?layers=one"></div>
</div>
<div id="OpenLayers.Layer.WMS_285">
<div><img id="OpenLayersDiv303" src="..?layers=two"></div>
<div><img id="OpenLayersDiv345" src="..?layers=two"></div>
</div>
and so on.
Questions:
- Can I get these div ids programmatically?
- Even better, can I specify what these div ids should be?
- Can I get the image ids programmatically, or, even better, specify
my own (of course, ensuring they are unique)?
- Can I draw them in a single div like so (this is reaaaaly far-fetched)?
<div id="OpenLayers.Layer.WMS_283">
<div><img id="OpenLayersDiv293" src="..?layers=one"></div>
<div><img id="OpenLayersDiv303" src="..?layers=two"></div>
..
</div>
Objective -- I am trying to overlay a bunch of georeferenced images on
a map div, within a known div.
--
Puneet Kishor
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users