osgeo / ows.js Goto Github PK
View Code? Open in Web Editor NEWOGC Web Services Library for JavaScript
Home Page: https://github.com/OSGeo/ows.js
License: MIT License
OGC Web Services Library for JavaScript
Home Page: https://github.com/OSGeo/ows.js
License: MIT License
Hi all,
Some days ago I implemented async calls with promises. So the calls change from this:
Older version, sync and blocking method:
// GetRecords
var results = csw.GetRecords(1,10,filter);
console.log(results);
to this:
New version, async and no-blocking method:
// GetRecords
csw.GetRecords(1,10,filter).then(function(result){
console.log(result)
});
The code can by re-viewed at https://github.com/juanmav/ows.js/tree/promises
any comments?
Regards
JM
@juanmav any reason why we couldn't have dist/
generated by a build step?
@juanmav http://bower.io/search/?q=ows.js any chance we can point this to https://github.com/OSGeo/ows.js? I'm guessing pushing your local changes / new features upstream at some point.
For the reasoning, see http://contribute.md/
I'd create a first version (partially based on https://github.com/openlayers/ol3/blob/master/CONTRIBUTING.md), but I don't want to imply to much regarding community process etc. without a discussion, so here is a draft: https://gist.github.com/nuest/4b6d60ec0d8fd3b6a930
Feedback is highly appreciated.
Questions:
I surely don't want to slow down development by this, so keeping these things low profile is fine by me, then we'll just mention that in the contribute.md ๐
I've tried to apply a BBOX filter (paying attention to lat, lon
order). With the GetRecords
I get this message Argument [ows:BoundingBox] must be an array
. Do you have any idea how to solve that? Thanks a lot for your reply
So what do we plan to use for ows.js?
ES6 modules seem the way forward. Since there are transpilers (https://babeljs.io) or shims ( https://github.com/paulmillr/es6-shim/)
What do people think?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.