Skip to content

Commit 3deb2e0

Browse files
committed
add: marker test
1 parent 8bad513 commit 3deb2e0

2 files changed

Lines changed: 16 additions & 9 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
src/__pycache__/
22
.venv/
3-
.ruff_cache
3+
.ruff_cache
4+
output*

web/aladin.html

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -247,14 +247,20 @@
247247
return;
248248
}
249249
try {
250-
await A.init;
251-
aladinInstance = await A.aladin('#aladin-lite-div', {
252-
cooFrame: 'icrs',
253-
projection: 'AIT',
254-
showCooGrid: false,
255-
fullScreen: true,
256-
fov: 5,
257-
target: 'M 31'
250+
A.init.then(() => {
251+
aladinInstance = A.aladin('#aladin-lite-div', {
252+
cooFrame: 'icrs',
253+
projection: 'AIT',
254+
showCooGrid: false,
255+
fullScreen: true,
256+
fov: 5,
257+
target: 'M 31'
258+
});
259+
260+
var marker1 = A.marker(0, 0, {popupTitle: "Test", popupDesc: "TEST"});
261+
var markerLayer = A.catalog();
262+
aladinInstance.addCatalog(markerLayer);
263+
markerLayer.addSources([marker1]);
258264
});
259265

260266
initialiseSampleButtons();

0 commit comments

Comments
 (0)