Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Map grid #11

Merged
merged 8 commits into from
Dec 16, 2019
Merged

Map grid #11

merged 8 commits into from
Dec 16, 2019

Conversation

ChristianBeilschmidt
Copy link
Member

The map has now the possibility to show layers stacked as well as in a synchronized grid.

  • one can reorganize the grid by switching layer positions in the layer list
  • re-projections of layers is recognized
  • user selections are working for vector layers
  • draw interactions work for both views

@@ -12,15 +12,16 @@
<wave-layer-list class="mat-elevation-z4" [height]="middleContainerHeight$ | async"></wave-layer-list>

<div class="mid-container" [style.height.px]="middleContainerHeight$ | async">
<wave-ol-map #map>
Copy link
Contributor

Choose a reason for hiding this comment

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

If we add another map we have to indicate the type in the container name.

Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe you can clarify your suggestion, because I think I do not get your point.
My thoughts by now:

  1. we only use one map component
  2. #map is used to access the component from app.component.
  3. I don't know the type of a map. And usually I resist coding types into variable names.

Copy link
Contributor

Choose a reason for hiding this comment

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

oh i was thinking of cesium, harp.gl, ... as alternative to openlayers. Then we would have wave-ol-map, wave-cesium-map, ...

Copy link
Member Author

Choose a reason for hiding this comment

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

I think this would be a major change that needs a lot of refactoring then. Now, it's the only option and it is more than just one ol map - it is potentially a grid of maps. So I would leave it like this for now.

resultSymbology = ComplexPointSymbology.createClusterSymbology({
fillRGBA: this.randomColorService.getRandomColorRgba(),
});
clustered = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think that the default style for points from user input should be clustered

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought it was useless to use a cluster symbology without having this parameter set to be true. But I could change it to unclustered, but then with SimplePointSymbology.

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@ChristianBeilschmidt ChristianBeilschmidt merged commit 54797dd into master Dec 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants