Hi,

just wanted to let you know I've added a couple things on my P2 branch, available here:

https://github.com/AntTheLimey/Potlatch2

It can be tried out here:
http://www.mqdemo.com/antfarm/p2/potlatch2.html

Pretty sure I've got all the latest builds in.

changes:

a) swfobject.js upgraded to v2.2
- swfobject.js replaced with latest version. This should fix Internet Explorer javascript warnings, and Linux-based browsers issues about no flash installed warnings. - potlatch2.html had to be re-written for the new object model. This also enabled the oAuth flow changes
- known issues: none
- special instructions: potlatch2.html & swfobject.js files are totally different.

b) oAuth flow (goes with the swfobject.js upgrade)
- oAuth OSM window now opens up in a smaller centered window in front of the P2 editor, so the user should see it as a "popup" instead of losing the editor to a whole new window or tab - when you reach the oAuth callback page, rather than leaving the user on an HTML page telling them to close it, it will close down the oAuth mini-window and automatically click the "try access" button for them - new files: ok_go.html - this is the oAuth callback page you register w/ OSM when you register your app - it has the JS code to call the try Access button in P2 and to shut itself down. known issues: for some crazy reason internet explorer fonts on the OSM oAuth page are huge compared to other browsers. If I can figure out the CSS changes later & ask someone to update the OSM page, I can probably shrink the "popup" window more - special instructions: make sure you've updated swfobject.js, your page that Potlatch 2 sits on (potlatch2.html) and your oAuth callback page (ok_go.html)

c) "Find" button added to the Potlatch2 menu bar (next to help & options)
- adds a find button that pops up a titleWindow where you can search nominatim. Selecting an entry and picking the "go to" button will move the map to the latlon for that location and get map data
 - new files: \net\systemeD\potlatch2\find\findDialog.mxml
 - known issues: none so far...
 - special instructions: none

NOTE: It is entirely possible that you will need to create a resources/mapquest directory that is a symlink to https://github.com/MapQuest/MapQuest-Potlatch2-Resources - I originally started this from the MapQuest build, and there's a unix symlink directory symlink to the MQ style files - and I'm a windows machine, which is causing Git all sorts of havoc - anyone with any advice on how to stop me having to delete the unix one and recreate as a windows one would be immensely appreciated.

HTH
Ant (the limey)

_______________________________________________
Potlatch-dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/potlatch-dev

Reply via email to