Skip to content

Use synchronous ajax in GeoJson - #1353

Merged
Conengmo merged 2 commits into
python-visualization:masterfrom
Conengmo:ajax-sync
Jun 18, 2020
Merged

Conengmo merged 2 commits into
python-visualization:masterfrom
Conengmo:ajax-sync

Conversation

@Conengmo

@Conengmo Conengmo commented Jun 13, 2020 •

Copy link
Copy Markdown
Member

Close #1209

Two earlier PRs did conflicting changes: #1190 (merged July 2019) and #1289 (merged April 2020) are at odds with each other. This PR tries to resolve that.

Two requirements:

  • Add the GeoJson JS object to its parent after loading the data.
  • Add the GeoJson JS object to its parent before continuing with the rest of the code.

Two make both requirements come true we'll have to make the ajax request that loads the geojson data synchronously.

I added a test case that verifies both requirements are satisfied.

@Conengmo Conengmo added the waiting for changes This PR has been reviewed and changes are needed before merging label Jun 13, 2020
@Conengmo Conengmo added ready PR is ready for merging and removed waiting for changes This PR has been reviewed and changes are needed before merging labels Jun 14, 2020
@Conengmo
Conengmo merged commit 46f820e into python-visualization:master Jun 18, 2020
@Conengmo
Conengmo deleted the ajax-sync branch June 18, 2020 06:38
@Conengmo Conengmo removed the ready PR is ready for merging label Jun 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Combining GeoJson markers in a MarkerCluster shows unclustered markers

1 participant