File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
app/javascript/maplibre/layers Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ export class BasemapLayer extends Layer {
5353
5454 if ( features . length ) {
5555 functions . e ( '#map-context-menu' , el => {
56+ if ( el . querySelector ( '[data-action*="addToGeojsonLayer"]' ) ) { return }
5657 el . classList . remove ( 'hidden' )
5758
5859 const copyButton = document . createElement ( 'div' )
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ export class OverpassLayer extends Layer {
3838 const feature = features . find ( f => ! f . properties ?. cluster )
3939 if ( feature ) {
4040 functions . e ( '#map-context-menu' , el => {
41+ if ( el . querySelector ( '[data-action*="addToGeojsonLayer"]' ) ) { return }
4142 el . classList . remove ( 'hidden' )
4243 const copyButton = document . createElement ( 'div' )
4344 copyButton . classList . add ( 'context-menu-item' )
You can’t perform that action at this time.
0 commit comments