-
-
Notifications
You must be signed in to change notification settings - Fork 102
added move and remove for photo cluster at max zoom level #365
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
added move and remove for photo cluster at max zoom level #365
Conversation
as discussed in #346 I added "Move all" and "Remove all geo data" to cluster context menu at max zoom level. Signed-off-by: wronny <[email protected]>
|
The code looks good to me, but I haven't tested. I'm not sure if I will find time before the weekend. |
No worries, no hurry |
|
Ok tested it, works nicely. Thanks.
The reight click botton has two different menus:
I think we should synchronize them:
Any thoughts on this @eneiluj @jancborchardt @wronny ? |
|
thought from my point of view are:
|
|
Well, I know the details of how things are programmed and I manged to get confused by the current situation. I don't want to know, if I would be able to explain this behavior to my Grandparents. And at least a temporally redo action would be nice anyway, or? |
resolving conflict with updated master Signed-off-by: wronny <[email protected]>
|
after a long time being offline I would like to come back to this merge request. The intend of this mr was to fill the following gap: |
|
Hello @eneiluj |
tacruc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is how I would synchronize the behaviour.
Still keep in mind #510, which might be adopted, too.
| var layerId = a.layer._leaflet_id; | ||
| a.layer.unbindPopup(); | ||
| var popupContent = this._map.photosController.getPhotoClusterContextmenuPopupContent(layerId); | ||
| var availZoomLevels = this._map.getMaxZoom() - this._map.getZoom(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var groupEditEnabled = a.layer.getChildCount() <= 20 || this._map.getZoom() === this._map.getMaxZoom()
| }, | ||
|
|
||
| getPhotoClusterContextmenuPopupContent: function(layerId) { | ||
| getPhotoClusterContextmenuPopupContent: function (layerId, availZoomLevels) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getPhotoClusterContextmenuPopupContent: function (layerId, availZoomLevels, groupEditEnabled) {
| ' <span>' + zoomText + '</span>' + | ||
| ' </button>' + | ||
| ' </li>'; | ||
| }else{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (groupEditEnabled) {
|
Can someone please review, this is very annoying missing feature and fix would be great. |

as discussed in #346 I added "Move all" and "Remove all geo data" to cluster context menu at max zoom level.
Signed-off-by: wronny [email protected]