Ticket #1083 (closed feature: fixed)

Opened 5 years ago

Last modified 3 years ago

Graticule Control

Reported by: crschmidt Owned by: 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 Download (14.0 KB) - added by madair 3 years ago.
graticule_v2.patch Download (18.4 KB) - added by madair 3 years ago.
graticule_v3.patch Download (20.4 KB) - added by madair 3 years ago.
graticule_v4.patch Download (22.1 KB) - added by madair 3 years ago.
updated with feedback

Change History

Changed 4 years ago by crschmidt

  • milestone changed from 2.6 Release to 2.7 Release

Changed 4 years ago 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.

Changed 3 years ago 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.

Changed 3 years ago 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.

Changed 3 years ago by madair

Changed 3 years ago 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

Changed 3 years ago by madair

Changed 3 years ago 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.

Changed 3 years ago by madair

  • keywords foss4g09 added

Changed 3 years ago by madair

Changed 3 years ago by madair

  • state changed from Needs More Work to Review

depends on #2312

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

Changed 3 years ago by madair

  • owner set to ahocevar

Changed 3 years ago by madair

updated with feedback

Changed 3 years ago by ahocevar

  • keywords foss4g09 removed
  • 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)

Note: See TracTickets for help on using tickets.