Hi,<br><br>@Tim, this is very similar to what i want, the only addition i would hope for would be the inclusion of some label(s) at the edges to indicate the lat/long values.<br><br>@Linda, this is the only way i have figured out, and performs "OK" when keeping the number of lines small (
i.e. to a 10 by 10 grid).<br><br>Cheers,<br><br>Andy<br><br><div><span class="gmail_quote">On 20/11/2007, <b class="gmail_sendername">Tim Schaub</b> <<a href="mailto:tschaub@openplans.org">tschaub@openplans.org</a>> wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hey-<br><br>Andy Dale wrote:<br>> Hi,<br>><br>> To provide the user with some feedback as to their current
<br>> position/coordinates with the OpenLayers.Control.MousePosition control,<br>> and this works well.<br>><br>> However I now have the need to be able to display a grid of<br>> longitude/latitude lines along with labels, the size of the grid should
<br>> also be configurable based upon the current zoom level.<br>> I was wondering if openlayers currently has this ability ? If not what<br>> is the best way to approach this, a shape file of some kind ? or<br>> actually let openlayers do it with a vector layer with multiple line
<br>> features ?<br><br>This is called a graticule. A search for "openlayers graticule" leads<br>me to a control that Christopher is working on in a sandbox [1]. You<br>can take a look at the example to see if it's close to what you're
<br>talking about [2].<br><br>So, with what is in the trunk, you could make your own (following the<br>code above is advised :) - or you could download that Graticule control<br>class and try it out (if you're willing to play with work in development).
<br><br>Tim<br><br>[1]<br><a href="http://trac.openlayers.org/browser/sandbox/crschmidt/grat/lib/OpenLayers/Control/Graticule.js">http://trac.openlayers.org/browser/sandbox/crschmidt/grat/lib/OpenLayers/Control/Graticule.js
</a><br><br>[2] <a href="http://dev.openlayers.org/sandbox/crschmidt/grat/examples/graticule.html">http://dev.openlayers.org/sandbox/crschmidt/grat/examples/graticule.html</a><br><br>><br>> Any advice/help is greatly appreciated,
<br><br><br>><br>> Andy<br>> !DSPAM:4033,4742dfea56701849620573!<br>><br>><br>> ------------------------------------------------------------------------<br>><br>> _______________________________________________
<br>> Users mailing list<br>> <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>> <a href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a><br>><br>
><br>> !DSPAM:4033,4742dfea56701849620573!<br><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br><a href="http://openlayers.org/mailman/listinfo/users">
http://openlayers.org/mailman/listinfo/users</a><br></blockquote></div><br>