Skip to content

Commit ddff5e2

Browse files
committed
Upgrade with search
1 parent 11821a7 commit ddff5e2

File tree

4 files changed

+368
-8
lines changed

4 files changed

+368
-8
lines changed

fullstack/assets/js/map.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ const Map = {
66
const map = {container: "map", style: ml}
77
this.props.map = new maplibregl.Map(map);
88
});
9+
this.handleEvent(`map:${this.props.id}:add`, ({ layer }) => {
10+
this.props.map.addLayer(layer);
11+
});
912
},
1013
};
11-
1214
export default Map;

0 commit comments

Comments
 (0)