Skip to content

Load KML data in the same fashion GeoJSON data/style are loaded #558

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

Merged
merged 4 commits into from
Dec 5, 2023

Conversation

pakb
Copy link
Contributor

@pakb pakb commented Dec 4, 2023

meaning we load these data whenever such a layer is added to the map, through a store plugin.

I also moved the "metadata" attribute that was sitting in AbstractLayer into KMLLayer, as it is only used by this layer so far (and I don't see any use cases where it would be by any other layer type) This way, the addToMap attribute could also be removed and replaced by the same logic as the GeoJSON and external layer async management, meaning the flag isLoading

The logic to add, or not add, the KML layer to the map is now dependent if the KML layer is the one being edited by the drawing module, and if the drawing module is active (no need for the addToMap flag anymore, this information is derived from others we already have)

Test link

@pakb pakb requested a review from ltshb December 4, 2023 11:50
@pakb pakb force-pushed the feat_load_kml_data_async branch from 2432c97 to 70746e4 Compare December 4, 2023 13:38
@pakb pakb changed the base branch from develop to bug_fix_reloading_kml_with_adminid December 4, 2023 13:38
@pakb pakb force-pushed the feat_load_kml_data_async branch from 70746e4 to 07818d3 Compare December 4, 2023 14:58
Copy link
Contributor

@ltshb ltshb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good just two minor comment

@pakb pakb force-pushed the bug_fix_reloading_kml_with_adminid branch from af24c24 to 8f4819c Compare December 5, 2023 07:21
@pakb pakb force-pushed the feat_load_kml_data_async branch from 29714f1 to b71fd71 Compare December 5, 2023 07:32
Base automatically changed from bug_fix_reloading_kml_with_adminid to develop December 5, 2023 07:34
pakb added 3 commits December 5, 2023 08:34
meaning we load these data whenever such a layer is added to the map, through a store plugin.

I also moved the "metadata" attribute that was sitting in AbstractLayer into KMLLayer, as it is only used by this layer so far (and I don't see any use cases where it would be by any other layer type)
This way, the addToMap attribute could also be removed and replaced by the same logic as the GeoJSON and external layer async management, meaning the flag isLoading

The logic to add, or not add, the KML layer to the map is now dependent if the KML layer is the one being edited by the drawing module, and if the drawing module is active (no need for the addToMap flag anymore, this information is derived from others we already have)
@pakb pakb force-pushed the feat_load_kml_data_async branch from b71fd71 to 49b911d Compare December 5, 2023 07:35
@pakb pakb merged commit c89807a into develop Dec 5, 2023
@pakb pakb deleted the feat_load_kml_data_async branch December 5, 2023 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants