You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ebertin - As mentioned via email, for my application I'd like to use Visiomatic for a static webpage.
No image server, just use it as a FITS WCS leaflet plugin, probably also the WCS control.
Can you please help me to fix this example so that putting markers and circles at given world coordinates works?
Would you be interested to have such an example in the visiomatic repo?
I'd be happy to improve it and to document how it works in the docs, but such an application is not really the proper use case for Visiomatic, right?
The text was updated successfully, but these errors were encountered:
VisiOmatic provides a special utility function for managing AJAX calls (similar to jQuery.ajax(), but much more basic): http://visiomatic.readthedocs.org/en/latest/api.html#l-iiputils-requesturl
The link above provides an example. I think you may be able to modify the coordinate reference system of the map after it is initialized, simply by setting map.options.crs = L.CRS.wcs(hdr), as long as it is done before adding the layer.
I will try to find some time tomorrow to help.
@ebertin - As mentioned via email, for my application I'd like to use Visiomatic for a static webpage.
No image server, just use it as a FITS WCS leaflet plugin, probably also the WCS control.
I have a demo here that can display the image:
The WCS trafos don't work because the
L.map('map', {crs: L.CRS.wcs(header), ...})
call happens beforeheader
is loaded:https://github.com/cdeil/slippy-astro-images/blob/gh-pages/visiomatic/main.js
I tried fixing it like this, but there I get no image (I'm a complete JS newbie):
https://github.com/cdeil/slippy-astro-images/blob/gh-pages/visiomatic/main2.js
Can you please help me to fix this example so that putting markers and circles at given world coordinates works?
Would you be interested to have such an example in the visiomatic repo?
I'd be happy to improve it and to document how it works in the docs, but such an application is not really the proper use case for Visiomatic, right?
The text was updated successfully, but these errors were encountered: