[josm-dev] Need advice about a recent change in Mapview blocking the plugin cadastre-fr and its Lambert zone projections
Petr Nejedlý
petr at nejedli.cz
Wed Nov 18 18:47:08 GMT 2009
Pieren napsal(a):
> On Wed, Nov 18, 2009 at 6:21 PM, Pieren <pieren3 at gmail.com> 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
More information about the josm-dev
mailing list