Skip to content
This repository has been archived by the owner on Feb 20, 2021. It is now read-only.

Commit

Permalink
renamed osb-server/ to api/0.1/, osb/ to client/ and changed scripts …
Browse files Browse the repository at this point in the history
…accordingly
  • Loading branch information
emka committed Mar 27, 2009
1 parent c501c0b commit 7efff70
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 13 deletions.
17 changes: 9 additions & 8 deletions README
Expand Up @@ -2,12 +2,13 @@ OPENSTREETBUGS

The concept of Openstreetbugs and the orignal software has been developed by
Xavier. The code can be seen in action on http://openstreetbugs.appspot.com/.
When I set up a http://www.mappa-mercia.org/ I wanted to integrate
Openstreetbugs into this website and so I started to adept Xavier's javascript

When Christoph set up a http://www.mappa-mercia.org/ he wanted to integrate
Openstreetbugs into this website and so he started to adept Xavier's javascript
code. In order to test my modifications without polluting the "official"
database with test bugs I also wrote my own very simple server-side scripts.
database with test bugs he also wrote my own very simple server-side scripts.

Since there has been some interest in the source code of Openstreetbugs I
Since there has been some interest in the source code of Openstreetbugs he
decided to bundle the modified client-side code and my still very simple
server-side scripts with some documentation and publish them.

Expand Down Expand Up @@ -52,7 +53,7 @@ webserver:
of the database or add the table to a different database. However, the name
of the table and the columns must not be changed.

2. Copy the cgi-scripts in osb-server/ to a location on your webserver where
2. Copy the cgi-scripts in api/0.1/ to a location on your webserver where
execution of cgis is enabled (probably something like /cgi-bin/).

3. Open all four files in your favourite text editor and change the variables
Expand Down Expand Up @@ -121,10 +122,10 @@ Client-side
Once you sorted out the server-side of Openstreetbugs you can install the
client-side.

The client side code is in the osb/ folder of this package. Copy this folder to
The client side code is in the client/ folder of this package. Copy this folder to
the top-level directory of your website. If you want to place it somewhere
else or if you want to name it differently you have to update the osb_img_path
variable in openstreetmap.js accordingly.
variable in openstreetbugs.js accordingly.

In the example/ folder you find a very simple example of how to add
Openstreetbugs support to a website. All you need to do is linking
Expand All @@ -148,4 +149,4 @@ Contact

If you have any questions or comments please contact:

christoph@b3e.net
christoph@b3e.net, mitja@kleider.name
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
2 changes: 1 addition & 1 deletion osb/openstreetbugs.js → client/openstreetbugs.js
Expand Up @@ -181,7 +181,7 @@ function popup_close_bug(bug_or_id)

/* base url for images used by openstreetbugs:
*/
var osb_img_path = "/osb/";
var osb_img_path = "/client/";

/* Map object to which openstreetbugs has been added:
*/
Expand Down
8 changes: 4 additions & 4 deletions example/osb-example.html
Expand Up @@ -5,7 +5,7 @@
<title>Openstreetbugs Example</title>

<!-- Tell the browser that this page has a "favicon" -->
<link rel="icon" type="image/png" href="../osb/open_bug_marker.png">
<link rel="icon" type="image/png" href="../client/open_bug_marker.png">

<!-- These lines add everything that's neccessary to show a slippy map
with osm mapnik tiles. The details on how this works can be found on
Expand All @@ -19,8 +19,8 @@
<!-- The following two lines add the javascript for openstreetbugs and a
stylesheet which polishes the popups displayed by openstreetbugs.
-->
<link rel="stylesheet" href="../osb/openstreetbugs.css" type="text/css">
<script src="../osb/openstreetbugs.js" type="text/javascript"></script>
<link rel="stylesheet" href="../client/openstreetbugs.css" type="text/css">
<script src="../client/openstreetbugs.js" type="text/javascript"></script>

<script type="text/javascript">
/* This function is called once the page is loaded to
Expand All @@ -34,7 +34,7 @@
// Add openstreetbugs to the map. The function takes two arguments: The first one must
// reference an Openlayers.Map object, the second one specifies the path on the server
// which contains the server side scripts.
init_openstreetbugs(map, "/osb-server/");
init_openstreetbugs(map, "/api/0.1/");
}
</script>
</head>
Expand Down

0 comments on commit 7efff70

Please sign in to comment.