Hi all,

At the HOT conference call, February 16, a proposition of Joseph Reeves to 
adapt JOSM HDM Presets to Potlatch2 has been retained. I accepted to develop 
this tool and give the opportunity to edit in Potlatch2 with HDM Presets.

The development of the Custom Potlatch2 API integrating HDM Presets is now 
completed  and I invite people interested to evaluate this prototype and make 
comments.

The API can be accessed for Evaluation from a Development site. This was 
necessary since Potlatch2 API do not have option to let users read a Custom 
Presets file like in JOSM. The url below gives access to the API for editing. 
It is also possible to specify zoom, latitude and longitude coordinates : 
http://pierzen.dev.openstreetmap.org/hotpotlatch2/potlatch2.html?lat=38.2803&lon=140.87313&zoom=16
 

The HOT Presets added to the Potlatch2 menus are derived from JOSM HDM Presets,
url 
https://github.com/wonderchook/OpenStreetMap-Humanitarian-Tags/blob/master/humanitarian_presets_josm.xml

Editing should give same results as using HDM Presets in JOSM. However, the 
menus are presented differently. The HOT Presets cannot be isolated the same 
way as JOSM with specific Groups. We have to take account of the Potlatch2 API 
functioning. To group the Features in the Menu Groups, I choose a compromise 
that takes account of both Potlatch2 API functioning and need for HOT users to 
spot rapidly the various HOT features. 

In the Potlatch2 API, you cannot duplicate use of a tag like amenity=school in 
two distinct Features. This means that it is not possible to isolate HDM menus 
like in JOSM. The structure of menu is also slightly different. The first level 
of Menu shows a list of icons by Groups like Humanitarian Features. When 
selecting a specific Feature, the second level of Menu shows various dialog 
boxes accessible via the Tabs positioned over the Dialog Box. 

In this first version of the Custom API, HOT Transport features are integrated 
with the default Presets. The HOT Presets are grouped in specific Tabs with HOT 
Prefix.  The Presets for Campsite, School, Hospital and Waterpoint are grouped 
in Humanitarian Features Group.


Regards

Pierre Béland
_______________________________________________
HOT mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/hot

Reply via email to