[OpenMap Users] paint a simple rectangle

From: Ruben DF <rdocasalf_at_yahoo.es>
Date: Wed, 9 Jan 2008 14:48:36 +0100 (CET)

Hi to everybody,

I'm a newbie with openmap. I would like to paint a
simple rectangle from openmap.java (from main method)
given the latitude and longitude. My code is (below of

static public void main(String args[]) {
        ArgParser ap = new ArgParser("OpenMap");
        String propArgs = null;
                "A resource, file path or URL to
properties file\n Ex: http://myhost.com/xyz.props or
file:/myhome/abc.pro\n See Java Documentation for
java.net.URL class for more details",


        String[] arg = ap.getArgValues("properties");
        if (arg != null) {
            propArgs = arg[0];

        //paint rectangle

            float latPointUL = 59.06484f;
        float longPointUL = -100.47563f;
        float latPointBR = -28.030712f;
        float longPointBR = -37.12247f;

        OMRect omRect = new
            EditableOMRect erect = new

I had to put mapPanel like static in order to work ok,
however, the rectangle is not painted on the screen
and I dont know if I'm doing ok or not. Any idea?

Thanks to advance and Best regards

Web Revelación Yahoo! 2007:
Premio Favorita del Público.

[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Jan 09 2008 - 08:59:32 EST

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:08 EDT