Skip to content

Commit

Permalink
Don't add sketch hover event listeners for symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
underbluewaters committed Dec 19, 2023
1 parent 05de7c8 commit ca7851e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/client/src/dataLayers/MapContextManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1556,7 +1556,9 @@ class MapContextManager extends EventEmitter {
const sketchLayerIds: string[] = [];
const sketchData = this.computeSketchLayers();
baseStyle.layers.push(...sketchData.layers);
sketchLayerIds.push(...sketchData.layers.map((l) => l.id));
sketchLayerIds.push(
...sketchData.layers.filter((l) => l.type !== "symbol").map((l) => l.id)
);
for (const sourceId in sketchData.sources) {
baseStyle.sources[sourceId] = sketchData.sources[sourceId];
}
Expand Down

0 comments on commit ca7851e

Please sign in to comment.