[OSM-dev] osmlab osm-auth

2013-03-25 Thread tmcw
Hello folks,

So we've been working on the iD editor ( http://ideditor.com/ ) and one of
the big goals is to make a lot of it modular to make more cool OSM hacks
possible.

I've been moving some of these parts to osmlab: https://github.com/osmlab

The idea here is pretty simple: it's an organization for osm-related
modules, code, and data. There are simple guidelines -
https://gist.github.com/tmcw/5157262 - which equate to try to be
approachable and open to contributors. As such, anyone who wants to pull
request / get commit to a project and has cool ideas, just ask. Also, it's
going to be all liberally-licensed projects - BSD, MIT, and PD.

So far it's been small modules, and one that might be pertinent is osm-auth.
The OAuth implementation in iD has already been open  modular as 'ohauth'
but the steps between that no-assumptions implementation and a working
integration were too much.

Thus, osm-auth: https://github.com/osmlab/osm-auth

It has a simple API, focused on logging in, out, and doing api calls.
There's a quick demo of integration: http://osmlab.github.com/osm-auth/
which should be a great starting block for other projects. It's PD code, and
uses ohauth behind the scenes.

This is not to say it's perfect - right now it'll need a little work in the
rails port to make it not conflict with other OAuth applications
https://github.com/openstreetmap/openstreetmap-website/issues/220 thanks to
browser  server caching.

But it's a start, and I think it'll eliminate one major reason why js-only
OSM API applications haven't taken off yet - this encapsulates a big
stumbling block.

Report issues if you run into anything
https://github.com/osmlab/osm-auth/issues or even better (so much better)
fork, clone, pull request, and make this thing better.

Tom



--
View this message in context: 
http://gis.19327.n5.nabble.com/osmlab-osm-auth-tp5754648.html
Sent from the Developer Discussion mailing list archive at Nabble.com.

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [Potlatch-dev] Status of potlatch2 development?

2013-02-28 Thread tmcw
To add on to Richard's comment:

One other vital purpose of P2 at this point is for backwards-compatibility
with OSM's significant percentage of IE users. iD isn't IE10 compatible and
realistically cannot be, so having P2 and other editors as options is
essential.

Also, P2 is still a more advanced editor than iD and it's not clear that iD
will ever be as advanced for certain things. Richard points out external
vector sources, and I'd add on manual relation editing - iD will probably
try to handle certain relation-cases in UI-wrapped ways first.

That and of course, P2 is where we find smart implementations of everything
related to OSM.

Re: some of Steve's questions -

- are the internals at all similar to Potlatch?...

Yes and no - there's a similar concept of actions. Map rendering and the
data structure are entirely different. A few of the operations/algorithms
are directly ported from P2. Currently iD uses a converted version of P2's
imagery.xml file, but we'll probably switch to JOSM's or another source.

- is there a specified direction or policy on what kinds of advanced
features will be allowed in? Is iD intended only as a beginners'
editor? Can advanced features be included?

Yes, there are some advanced features. We're okay with sophisticated
features as long as they do not interrupt the gradual learning curve. So,
basic UX ground rules like 'everything must be mouse-accessible', 'no
unnecessary complicated terms', and so on. Hard to say much more than that
that's a hard and fast rule - it really goes feature-by-feature as far as
what's possibly intimidating versus what's user-friendly.

- has there been any discussion about an openstreetmap.org version vs
a MapBox version? Perhaps the former would have a different policy on
the previous question...

There are no plans (internal or external) about a 'MapBox version'. It's an
open source project, and the #1 goal is to get it on osm.org as a default
editor, for OSM, and to have a large base of contributors and users.

Tom



--
View this message in context: 
http://gis.19327.n5.nabble.com/Potlatch-dev-Status-of-potlatch2-development-tp5746990p5751501.html
Sent from the Potlatch mailing list archive at Nabble.com.

___
Potlatch-dev mailing list
Potlatch-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/potlatch-dev