OpenMap-java / openmap

OpenMap is an Open Source JavaBeans-based programmer's toolkit. Using OpenMap, you can quickly build applications and applets that access data from legacy databases and applications.
http://openmap-java.org
Other
72 stars 43 forks source link

Using 2-point LabeledOMPoly places label in upper left corner of map #25

Open dalemarchand opened 8 years ago

dalemarchand commented 8 years ago

When using a LabeledOMPoly object with only 2 lat/lon points, the label is being placed in the upper left corner of the map. It looks like the getCenter() method fails to account for this usage, encounters an area of 0, and computes the "center" point as 0,0