Hello,
I submitted some enhancements to the mif layer, mainly to do with the
performance, I built the changes on the 4.5 codebase, Don modified the code
to work on top of 4.6, I have not tried running my application with 4.6 yet.
Try using the files in the attached zip files, with OpenMap 4.5 and set up
the layers as the example below.
Using a 44mb mif file I was getting about 60% increase in performance
Properties props = new Properties();
props.put("mapinfo."+MIFLayer.MIF_FileProperty,"c:\file.mif");
props.put("mapinfo."+MIFLayer.PrettyNameProperty, "My MIF
File");
props.put("mapinfo."+MIFLayer.pointVisibleProperty, "-1.0");
props.put("mapinfo."+MIFLayer.textVisibleProperty, "-1.0");
MIFLayer minfoLayer = new MIFLayer();
minfoLayer.setProperties("mapinfo", props);
minfoLayer.setVisible(true);
mapHandler.add(minfoLayer);
-----Original Message-----
From: Ahmet KANDAKOGLU [mailto:kandak@HARPAK.TSK.mil.tr]
Sent: 11 February 2004 09:15
To: openmap-users@bbn.com
Subject: [OpenMap Users] mif layer bug
hi everybody,
is there anyone using the MIFLayer?
I have an MIFLayer set up with MIF data.
First, it is too slow to load the mif data and then again too slow to when
reacting map events (repainting the omgraphiclist). I study the source code
(MIFLayer.java and MIFLoader.java) and could not found anything to do.
the size of the mif file is 3.25 MB. i am using openmap 4.5.4. my code is
below;
MIFLayer mifLayer = new MIFLayer();
Properties mifLayerProps = new Properties();
mifLayerProps.put("mifFile", "D:/mapdata/map.mif");
mifLayer.setProperties(mifLayerProps);
mifLayer.setVisible(true);
mapHandler.add(mifLayer);
I tried with openmap 4.6 but another bug occurs.
when the layer opens it is fine. after the first map event (for example,
zooming), the layer becomes invisible.
is this a bug or am i doing something wrong.
Cheers,
Ahmet Kandakoglu
Project Officer
W&SC
____________________________________________________
<http://www.incredimail.com/redir.asp?ad_id=309&lang=9> IncrediMail -
Email has finally evolved -
<http://www.incredimail.com/redir.asp?ad_id=309&lang=9> Click Here
-- [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 Thu Feb 12 12:36:20 2004
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:37 EDT