I added various layers in GeoServer and created a map from them.
Tile3_modified.html
<http://osgeo-org.1560.x6.nabble.com/file/n5245613/Tile3_modified.html>
I click on a layer and the box with the attribute information shows up.
box.PNG <http://osgeo-org.1560.x6.nabble.com/file/n5245613/box.PNG>
How do I modify the box in order for it to elongate (make it wider) to the
rest of the web page?
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/How-to-modify-box-which-shows-attribute-information-in-map-tp5245613.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
On 16/01/16 10:22, epyks23 wrote:
How do I modify the box in order for it to elongate (make it wider) to the
rest of the web page?
Just as you did for the <div> with id="map":
<div id="info" style="width:100%;"></div>
Kind regards,
--
Ben Caradoc-Davies <ben@anonymised.com>
Director
Transient Software Limited <http://transient.nz/>
New Zealand
I inserted <div id="info" style="width:100%;"></div>
but the size does not change.
I tried putting 200% to experiment, but it only elongates the web page, not
the box.
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/How-to-modify-box-which-shows-attribute-information-in-map-tp5245613p5245620.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
Ah, you also need to set this style on the inner iframe by changing this:
'<iframe seamless src="' + url + '"></iframe>';
to this:
'<iframe seamless style="width:100%;" src="' + url + '"></iframe>';
Kind regards,
Ben.
On 16/01/16 12:13, epyks23 wrote:
I inserted <div id="info" style="width:100%;"></div>
but the size does not change.
I tried putting 200% to experiment, but it only elongates the web page, not
the box.
--
Ben Caradoc-Davies <ben@anonymised.com>
Director
Transient Software Limited <http://transient.nz/>
New Zealand
Perfect. Thanks. It works.
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/How-to-modify-box-which-shows-attribute-information-in-map-tp5245613p5245676.html
Sent from the GeoServer - User mailing list archive at Nabble.com.