example OMGrid wanted

From: MARTIJN VAN DER PAUW <martijnp@meteocon.nl>
Date: Wed Jun 26 2002 - 04:52:35 EDT

Hello,

Does someone have an example of a OMGrid. I can't find any documentation on this topic.

This is a piece of testcode I have, but that doens't show anything on my map.

/////////////////////
int [][] b1={{23,24,25,11,11,11},{14,37,49,11,11,11},{25,93,72,11,11,11},{75,68,49,11,11,11},{25,93,72,11,11,11},{75,68,49,11,11,11}};
com.bbn.openmap.omGraphics.OMGrid hh= new com.bbn.openmap.omGraphics.OMGrid( 52.6f,6.5f,2,2,b1);
com.bbn.openmap.omGraphics.grid.SimpleColorGenerator gener =new com.bbn.openmap.omGraphics.grid.SimpleColorGenerator();

hh.setGenerator(gener);

hh.generate(new com.bbn.openmap.proj.Mercator(new
com.bbn.openmap.LatLonPoint(52.6,6.5f),8000000,this.returnimagewidth,this.returnimageheight));

                  
v.set(j,hh);

///////////////////////

When creating a OMCircle , it shows up. So, the code construction should be ok.

Martijn

Martijn van der Pauw, internetontwikkelaar.
Meteo Consult
martijn@weer.nl
tel: 0317 - 399800
fax: 0317 - 423164
http://www.weer.nl

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Jun 26 06:55:05 2002

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:33 EDT