OpenLayers OpenLayers

Ticket #1083 (closed feature: fixed)

Opened 2 years ago

Last modified 4 months ago

Graticule Control

Reported by: crschmidt Assigned to: ahocevar
Priority: minor Milestone: 2.9 Release
Component: Control Version: SVN
Keywords: Cc:
State: Complete

Description

Add a control to display a vector-based graticule, reprojected to the current map projection.

Reprojection depends on #857 and descendants.

Attachments

graticule_v1.patch (14.0 kB) - added by madair on 05/05/09 10:53:28.
graticule_v2.patch (18.4 kB) - added by madair on 05/09/09 22:10:12.
graticule_v3.patch (20.4 kB) - added by madair on 10/23/09 22:21:38.
graticule_v4.patch (22.1 kB) - added by madair on 10/24/09 00:01:04.
updated with feedback

Change History

12/18/07 07:59:07 changed by crschmidt

  • state changed.
  • milestone changed from 2.6 Release to 2.7 Release.

07/03/08 23:12:35 changed by euzuro

  • milestone changed from 2.7 Release to 2.8 Release.

Mass ticket move out of 2.7 in preparation for a release plan.

If you are actively working on this task, and think that you can help this ticket to get finished and closed by September 1, please move it back to 2.7.

02/28/09 12:54:43 changed by crschmidt

  • milestone changed from 2.8 Release to 2.9 Release.

Moving all tickets which have not been touched since 2.7 to 2.9.

03/03/09 01:47:34 changed by crschmidt

  • milestone changed from 2.9 Release to Future.

Release manager policy at this point:

  • 2.9 is for tickets which have existing work done on them, or bugs even if they don't.
  • Future is for tickets that no one has done any work on.

If at any time someone decides they are going to work on a ticket, they can pull a ticket back from Future to the current milestone, but putting a ticket in a milestone does not mean anything for its likely release unless it has code available.

Code which has patches ready for review should almost always go into the milestone for the next release.

This is a feature.

05/05/09 10:53:28 changed by madair

  • attachment graticule_v1.patch added.

05/05/09 11:00:23 changed by madair

  • state set to Needs More Work.
  • version changed from 2.5 to SVN.
  • milestone changed from Future to 2.9 Release.

first cut at a new Graticule control using a vector layer for the grid.

The calculation of grid lines goes from the center of the map out and tries to make the Lon/Lat interval results in a grid cell with diagonal less than the targetSize property.

Still to do: - fix label placement (probably in vector renderers using an offset) - increase granularity of points for projected maps (numPoints optino is there for that) - add tests - move getFormattedLonLat to Utils

05/09/09 22:10:12 changed by madair

  • attachment graticule_v2.patch added.

05/09/09 22:13:25 changed by madair

Smoother line drawing for projected maps.

added some logic for label placement, but the label placement parts of this patch should probably be moved to it's own ticket.

Still needs tests and testing in projections other than lon/lat and LCC but the primary functionality is there now.

10/22/09 19:18:44 changed by madair

  • keywords set to foss4g09.

10/23/09 22:21:38 changed by madair

  • attachment graticule_v3.patch added.

10/23/09 22:23:30 changed by madair

  • state changed from Needs More Work to Review.

depends on #2312

also adds OpenLayers.Util.getFormattedLonLat to format lat lon values

10/23/09 23:10:45 changed by madair

  • owner set to ahocevar.

10/24/09 00:01:04 changed by madair

  • attachment graticule_v4.patch added.

updated with feedback

10/24/09 00:36:34 changed by ahocevar

  • keywords deleted.
  • status changed from new to closed.
  • state changed from Review to Complete.
  • resolution set to fixed.

(In [9757]) added Graticule control and Util.getFormattedLonLat function. Thanks madair for this excellent patch. p=madair, r=me (closes #1083)