[Thread Prev][Thread Next][Index]
[las_users] Examples of Javascript Components v2.x
Hello,
Is anyone out there developing custom interfaces to Armstrong using the new
Javascript components? If so, I'd appreciate having some links to examples I
could look at.
I'm trying to build some simple interfaces for a middle school education
project. Looking at the Armstrong documentation, I'm a little confused about
whether I have the most up-to-date version of the Javascript components, and
what methods I should be using. I'm running Armstrong 0.4, and I'm looking at
the files distributed in armstrong-beta-0.4/WebContent/js.
Before tackling my own interface, I decided to try to get the "Molokai"
example working on my server. I copied the files and updated the HTML with
the address of my server. That didn't work, but looking at the output I'm not
sure why. Do the old Javascript methods (based on LASRequestDOM.js) work with
Armstrong?
http://www.dataintheclassroom.org/content/lasquery/simple-example/molokai.htm
I briefly looked at the comment in the code which advised me to look at the
naming of products in ui.xml. I'm assuming that is not the problem because
LAS installation is "stock" and I have not modified the UI configuration.
Thinking maybe I'd be better off with the newer Javascript components, I
started to see if I could modify the Molokai example following the v2
documentation here:
http://www.weathertopconsulting.com/armstrong/developer-documentation/javascript-components-v2.x/lasrequest/
Basically I replaced the LASRequestDOM.js script with the LASRequest.js script
that came with the Armstrong 0.4 package. I also changed toString() methods
to getXMLText() per the documentation. Still no luck.
http://www.dataintheclassroom.org/content/lasquery/simple-example/molokai-v2.htm
As a test, I generated one of the "Molokai" sample products using the standard
LAS interface. That worked, so I know that all the data and formats are
there. What I'm confused about is which Javascript components will help me
construct XML like that in this working URL.
http://www.dataintheclassroom.org:8080/las/ProductServer.do?xml=%3C%3Fxml+version%3D%221.0%22%3F%3E%3ClasRequest+package%3D%22%22+href%3D%22file%3Alas.xml%22%3E%3Clink+match%3D%22%2Flasdata%2Foperations%2Foperation%5B%40ID%3D%27Plot_1D%27%5D%22+%2F%3E%3Cproperties%3E%3Cferret%3E%3Cview%3Et%3C%2Fview%3E%3Cformat%3Eline%3C%2Fformat%3E%3Cdeg_min_sec%3Edefault%3C%2Fdeg_min_sec%3E%3Cdep_axis_scale+%2F%3E%3Cexpression+%2F%3E%3Cimage_format%3Edefault%3C%2Fimage_format%3E%3Cinterpolate_data%3Efalse%3C%2Finterpolate_data%3E%3Cline_color%3Edefault%3C%2Fline_color%3E%3Cline_or_sym%3Edefault%3C%2Fline_or_sym%3E%3Cline_thickness%3Edefault%3C%2Fline_thickness%3E%3Cmargins%3Edefault%3C%2Fmargins%3E%3Csize%3E0.5%3C%2Fsize%3E%3Cuse_graticules%3Edefault%3C%2Fuse_graticules%3E%3Cuse_ref_map%3Edefault%3C%2Fuse_ref_map%3E%3C%2Fferret%3E%3C%2Fproperties%3E%3Cargs%3E%3Clink+match%3D%22%2Flasdata%2Fdatasets%2Fcoads_climatology_cdf%2Fvariables%2Fsst%22+%2F%3E%3Cregion%3E%3Cpoint+v%3D%22-157.2%22+type%3D%22x%22+%2F%3E%3Cpoint+v%3D%2221.2%22+type%3D%22y%22+%2F%3E%3Crange+low%3D%2215-Jan%22+type%3D%22t%22+high%3D%2215-Dec%22+%2F%3E%3C%2Fregion%3E%3C%2Fargs%3E%3C%2FlasRequest%3E
Thanks in advance for any guidance.
Regards,
Todd
--
Todd Viola
office: +1 361-749-2472
toddviola@xxxxxxxxxxxxxx
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Privacy Policy | Disclaimer | Accessibility Statement