Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Graticule Drawing for Grid Projections Other than EPSG4326 #15077

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Sep 4, 2023

  1. Support for Graticule Drawing for Grid Projections Other than EPSG4326

    - to draw graticule lines by specified gridProjection option, not default EPSG4326(WGS84).
    
    modified:   src/ol/geom/flat/geodesic.js
      - patch meridian() and parallel() to allow to pass the sourceProjection, instead of hardcoded EPSG4326
    
    modified:   src/ol/layer/Graticule.js
      - ctor options 'gridProjection', as property this.gridProjection_
      - use this.gridProjection_ to replace hardcoded EPSG4326
      - use gridProjection_.getExtent() to get the extent. (so users should define the extent for the gridProjection, if needed)
        (Originally, projection_.getWorldExtent() is used to do that, but it is only ok when gridProjection_ is EPSG4326)
    
    - TODO suggest to change the variables' name from lonlat to xy
    dayanuyim committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    e8e2f01 View commit details
    Browse the repository at this point in the history