[OSM-dev] applet fixes in svn - testing volunteers needed!

Claudomiro Nascimento Jr. claudomiro at gmail.com
Fri Feb 23 23:08:41 GMT 2007


Hi Dan,

It looks good to me. Specially the automatic choice of tile size was a very
good improvement.

While you´re into this I have a sugestion and a bugfix:

Sugestion: The new "opacity" value while moving nodes is very faint on my
screen. A value of "100" worked like a charm to me:

Index:
C:/prog/workspace/osm-applet-new/src/org/openstreetmap/processing/NodeMoveMode.java
===================================================================
---
C:/prog/workspace/osm-applet-new/src/org/openstreetmap/processing/NodeMoveMode.java
(revision 2155)
+++
C:/prog/workspace/osm-applet-new/src/org/openstreetmap/processing/NodeMoveMode.java
(working copy)
@@ -44,7 +44,7 @@
                 lastOffsetY = n.coor.y - applet.mouseY;
                 origX = n.coor.x;
                 origY = n.coor.y;
-        applet.setOpacity(40); // make roads/nodes see through to ease
accurate positioning
+        applet.setOpacity(100); // make roads/nodes see through to ease
accurate positioning
             }
         }
         applet.debug("selected: " + applet.selectedNode);
===================================================================

Bugfix: The server responses are UTF-8 now:

Index:
C:/prog/workspace/osm-applet-new/src/org/openstreetmap/client/OxParser.java
===================================================================
---
C:/prog/workspace/osm-applet-new/src/org/openstreetmap/client/OxParser.java
(revision 2155)
+++
C:/prog/workspace/osm-applet-new/src/org/openstreetmap/client/OxParser.java
(working copy)
@@ -40,7 +40,7 @@
     public OxParser(InputStream i) {
         System.out.println("OSM XML parser started...");
         try {
-            parse(new InputStreamReader(new BufferedInputStream(i, 1024),
"ISO-8859-1"));
+            parse(new InputStreamReader(new BufferedInputStream(i, 1024),
"UTF-8"));
         } catch (IOException e) {
             System.out.println("IOException: " + e);
             e.printStackTrace();
===================================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20070223/9e06745d/attachment.html>


More information about the dev mailing list