Hi, I want the width of the Graticule control to be same as that of the baselayer. But it is extending beyond baselayer boundaries on both the sides, right and left. (Screenshot attached) 'targetSize' is not working. <br />
Is Graticule's width always the same as the map container division's width? But reducing the map container division's width clipped the Graticule, it didn't reduce the size. Please help, Thanks in advance<br />
Ameet<br />
<br />
Here is my code:<br />
<br />
var map = new OpenLayers.Map('map',     {<br />
        maxExtent: [-180, -90, 180, 90],<br />
        resolutions: [0.3515625, 0.17578125, 0.087890625, 0.0439453125,0.02197265625, <br />
                      0.010986328125],<br />
        controls: [<br />
            new OpenLayers.Control.Navigation(),<br />
            new OpenLayers.Control.PanZoomBar(),<br />
            new OpenLayers.Control.Graticule({<br />
                numPoints: 1, <br />
                //targetSize: 550,<br />
                labelled: true<br />
            })<br />
        ]<br />
});<br />
        <br />
var baseLayer = new OpenLayers.Layer.WMS(<br />
        "Global Imagery",<br />
        geoserverUrl + "wms",<br />
        {layers: "world_land"},<br />
        {<br />
            maxExtent: [-180, -90, 180, 90]<br />
        }<br />
);<br />
<br />
map.addLayer(baseLayer);<br />
map.zoomToMaxExtent();<br />
<br />
HTML code:<br />
<div id="mapcontainer"><br />
    <div id="map"><br />
    </div>                        <br />
</div><br><Table border=0 Width=100% Height=57 cellspacing=0 cellpadding=0 style="font-family:Verdana;font-size:11px;line-height:15px;"><TR><td><A HREF="http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?" target="_blank"><IMG SRC="http://sigads.rediff.com/RealMedia/ads/adstream_nx.ads/www.rediffmail.com/signatureline.htm@Middle"></A></td></TR></Table><br><div style="font-family:Arial, Helvetica, sans-serif; font-size:14px">Get your own <span style="font-size:12px; font-family:Arial, Helvetica, sans-serif;background-color:#C00; color:#FFF; padding: 0 3px;"><b>FREE</b></span> website and domain with business email solutions, <a href="http://track.rediff.com/click?url=___http://hosting.rediff.com/rediffmailpro/business-email?sc_cid=sig___&cmp=sig&lnk=sig&nsrv1=host">click here</a></div>