Pieren napsal(a): > On Wed, Nov 18, 2009 at 6:21 PM, Pieren <[email protected]> wrote: >> I cannot use a JOptionPane because it's called from MapView.paint() >> and if I just convert the values silently, the projection is wrong and >> the user is never informed even when he is really working outside the >> box. > > To be more clear: > I don't know how to ignore silently the values outsides the box coming > from the change in MapView but still warn the user when he is really > working outside the box.
Well, you should never implement such a warning in the projection code. In the ideal case, the projection API should allow refusing given coordinates (in either direction) and the rest of the code should (when relevant) deal with such a refusal. Then it wouldn't matter whether the user placed a node outside of this world in Mercaator or outside of the zode in Lambert. Nenik _______________________________________________ josm-dev mailing list [email protected] http://lists.openstreetmap.org/listinfo/josm-dev
