Hey- Andy Dale wrote: > Hi, > > @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.
Again from google, a search for "openlayers vector text" (or labels) leads to work being done by camptocamp [1]. You can take a look at the example in that sandbox to see if it meets your needs [2]. Tim [1] http://trac.openlayers.org/browser/sandbox/camptocamp/text/examples/vector-features-with-text.html [2] http://dev.openlayers.org/sandbox/camptocamp/text/examples/vector-features-with-text.html > > @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). > > Cheers, > > Andy > > On 20/11/2007, *Tim Schaub* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Hey- > > Andy Dale wrote: > > Hi, > > > > To provide the user with some feedback as to their current > > position/coordinates with the OpenLayers.Control.MousePosition > control, > > and this works well. > > > > However I now have the need to be able to display a grid of > > longitude/latitude lines along with labels, the size of the grid > should > > also be configurable based upon the current zoom level. > > I was wondering if openlayers currently has this ability ? If not > what > > is the best way to approach this, a shape file of some kind ? or > > actually let openlayers do it with a vector layer with multiple line > > features ? > > This is called a graticule. A search for "openlayers graticule" leads > me to a control that Christopher is working on in a sandbox [1]. You > can take a look at the example to see if it's close to what you're > talking about [2]. > > So, with what is in the trunk, you could make your own (following the > code above is advised :) - or you could download that Graticule control > class and try it out (if you're willing to play with work in > development). > > Tim > > [1] > > 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> > > [2] > http://dev.openlayers.org/sandbox/crschmidt/grat/examples/graticule.html > > > > > Any advice/help is greatly appreciated, > > > > > > Andy > > > > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Users mailing list > > [email protected] <mailto:[email protected]> > > http://openlayers.org/mailman/listinfo/users > > > > > > !DSPAM:4033,4742dfea56701849620573! > > _______________________________________________ > Users mailing list > [email protected] <mailto:[email protected]> > http://openlayers.org/mailman/listinfo/users > > > !DSPAM:4033,47432338211166491211187! _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
