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

Add missing scaling of draw interaction circles #160

Merged
merged 1 commit into from
May 23, 2019

Conversation

sjmallon
Copy link

@sjmallon sjmallon commented May 2, 2019

If draw interaction circles are synced to a geojson feature array, their
radius should be scaled to reflect the difference in scale factor
between the map view projection and ESPG:4236 used for geojson.

Currently, using an OSM base map and an EPSG:3857 view, synced GeoJSON "circles" (actually polygons) are larger than the drawn feature by an amount depending on latitude because no adjustment is made for the variable local scale factor. Below is an example from the south of the UK.

Screenshot_20190502_104424

If draw interaction circles are synced to a geojson feature array, their
radius should be scaled to reflect the difference in scale factor
between the map view projection and ESPG:4236 used for geojson.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.06%) to 24.875% when pulling 5832c30 on sjmallon:draw-circle-scaling into 49b7a61 on ghettovoice:master.

@ghettovoice
Copy link
Owner

Hello @sjmallon ,
thanks for contribution! I'll try to check and merge this soon

@ghettovoice ghettovoice merged commit 5832c30 into ghettovoice:master May 23, 2019
ghettovoice added a commit that referenced this pull request May 23, 2019
Merge pull request #160
@ghettovoice
Copy link
Owner

Currently released as vuelayers@next beta version v0.11.5-beta.1.
Thanks for contrib!

ghettovoice added a commit that referenced this pull request Oct 3, 2019
- resolved #173, #174, #201, #135, #216, #132 #224 #225 #226, #230
- merged of pull requests #160, #175, #180, #185, #188, #191, #206, #208,
  #212, #213, #215, #221, #227, #231
  Thanks to @baspeeters, @sjmallon, @janlazo, @categulario,
  @skymaze, @jemasfox, @owen-thurston, @agmt5989, @RemiDesgrange
- improved property watchers
- optional debug messages
- fixed broken UMD version
- simplified initial interaction/controls setup #95
- added `id` property for all ol components for easy identification
- mixins, ol-ext and rx-ext now are build to single file package,
  imports from those packages are not changed
- UMD version (dev/demo version) now includes all used stuff from `ol`
  package
- updated documentation and README
ghettovoice added a commit that referenced this pull request Oct 3, 2019
- resolved #173, #174, #201, #135, #216, #132 #224 #225 #226, #230
- merged of pull requests #160, #175, #180, #185, #188, #191, #206, #208,
  #212, #213, #215, #221, #227, #231
  Thanks to @baspeeters, @sjmallon, @janlazo, @categulario,
  @skymaze, @jemasfox, @owen-thurston, @agmt5989, @RemiDesgrange
- improved property watchers
- optional debug messages
- fixed broken UMD version
- simplified initial interaction/controls setup #95
- added `id` property for all ol components for easy identification
- mixins, ol-ext and rx-ext now are build to single file package,
  imports from those packages are not changed
- UMD version (dev/demo version) now includes all used stuff from `ol`
  package
- updated documentation and README
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants