Skip to content

Commit

Permalink
[fix]demos
Browse files Browse the repository at this point in the history
  • Loading branch information
luoxiao-supermap committed Apr 22, 2024
1 parent 4643f59 commit 32819c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions dev-demos/js/l7layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ export function createMarker(map, data1 = data) {
l7Layer.on('click', (e) => {
console.log('layer: ', e);
});

}
export var data2 = [
{
Expand Down
7 changes: 4 additions & 3 deletions dev-demos/l7_3857.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
</style>
<link rel="stylesheet" type="text/css" href="./js/iclient-mapboxgl.css"></link>
<script type="text/javascript" src="./js/mapbox-gl-enhance.js"></script>
<script type="text/javascript" src="../mapboxgl-l7-render/dist/index.js"></script> <!-- l7-mapboxgl -->
<!-- <script type="text/javascript" src="../mapboxgl-l7-render/dist/index.js"></script> -->
<script type="text/javascript" src="./js/iclient-mapboxgl-es6.js"></script>
</head>

Expand Down Expand Up @@ -84,9 +84,10 @@
.then(function (result) {
var map = result.map;
window.map = map;
new mapboxgl.Marker().setLngLat([120.148054, 30.25413]).addTo(map)
createButtons(map)
createMarker(map)
createMarker(map, data2)
// createMarker(map)
// createMarker(map, data2)
map.on('click', (ev) => {
console.log(ev)
});
Expand Down

0 comments on commit 32819c1

Please sign in to comment.