Merged
Conversation
Insert graticule layer above tile layers but below vector layers so that map symbols are not obscured by grid labels.
Was zIndex: 1000 which put it above everything. Now zIndex: 1, just above tile layers.
Remove explicit zIndex (which forces layer above all others in OL). Instead insert graticule before the first vector layer in the layer stack, so it renders above tiles but below map features.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an MGRS (Military Grid Reference System) graticule overlay to the map, selectable via View → Graticules → MGRS.
Features
32V)KM)3 · 7)32 · 74)Visual
Technical
src/renderer/components/map/mgrsGraticule.jsgeodesy/mgrs.jsfor UTM/MGRS conversionsclipToZone()for per-latitude zone clipping at special zone boundariesverticalLineSamples()adds extra interpolation points at band transitions (56°N, 64°N, 72°N)specs/mgrs-graticule.mdChanges
src/renderer/components/map/mgrsGraticule.js— new MGRS graticule layersrc/renderer/components/map/graticules.js— layer insertion below featuressrc/renderer/components/map/Map.js— pass vectorLayers to graticule registrationsrc/renderer/model/OSDDriver.js— handle coordinates outside UTM limits