Hi all,
this is how my openmap.properties look..the alterred part.
# Layers listed here appear on the Map in the order of their names.
openmap.layers=date daynight graticule demo shapePolitical india
openmap.startUpLayers=demo shapePolitical india
# In OpenMap 4.4, the LayerAddPanel was added. This panel allows
# certain layers/plugins to be added to the application dynamically.
# Only certain layers/plugin have been updated to be able to work with
# the Inspector to set their inital parameters. To add a layer to this
# list, create a unique marker name for a generic instance of the
# layer, and then supply the <layername>.class field and
# <layername>.prettyName (see below) for that object. The class name
# will be the type of layer/plugin created by the LayerAddPanel, and
# this prettyName will be the generic description of the layer
# presented to the user. The user will have an opportunity to name
# the specific layer that gets created.
openmap.addableLayers=earth shape grat rpf shispi eipi
grat.class=com.bbn.openmap.layer.GraticuleLayer
grat.prettyName=Graticule Layer
shape.class=com.bbn.openmap.layer.shape.ShapeLayer
shape.prettyName=Shape Layer
# ###################################################
# These are the properties for individual layers. Consult the
# javadocs (Java API pages) for the individual layers for options.
# ###################################################
### Layer used by the overview handler
overviewLayer.class=com.bbn.openmap.layer.shape.ShapeLayer
overviewLayer.prettyName=Overview
overviewLayer.shapeFile=data/shape/dcwpo-browse.shp
overviewLayer.spatialIndex=data/shape/dcwpo-browse.ssx
overviewLayer.lineColor=ff000000
overviewLayer.fillColor=ffbdde83
###
# Demo layer - the layer's palette has a bunch of buttons to call
# the Drawing Tool.
demo.class=com.bbn.openmap.layer.DemoLayer
demo.prettyName=Demo
###
# DrawingToolLayer - no palette, just a generic layer to catch
# graphics from the OMDrawingToolLauncher, and to call the OMDrawingTool
# to edit graphics already part of the layer.
drawing.class=com.bbn.openmap.layer.DrawingToolLayer
drawing.prettyName=Truck Layer
drawing.addToBeanContext=true
### ShapeFile layers
shapePolitical.class=com.bbn.openmap.layer.shape.ShapeLayer
shapePolitical.prettyName=Political Boundaries
# Specify shapefile and spatial-index file as a filename or pathname.
# If the former, you must reference the directory where this file
# lives in your CLASSPATH
shapePolitical.shapeFile=data/shape/dcwpo-browse.shp
shapePolitical.spatialIndex=data/shape/dcwpo-browse.ssx
# Colors (32bit ARGB)
shapePolitical.lineColor=ff000000
shapePolitical.fillColor=ffbdde83
india.class=com.bbn.openmap.layer.shape.ShapeLayer
india.prettyName=India States
# Specify shapefile and spatial-index file as a filename or pathname.
# If the former, you must reference the directory where this file
# lives in your CLASSPATH
india.shapeFile=data/shape/states_region.shp
india.spatialIndex=data/shape/states_region.ssx
# Colors (32bit ARGB)
india.lineColor=99FF0000
india.fillColor=99FF0000
----- Original Message -----
From: Donald Dietrick
To: anoop
Cc: PRADEEP RAMACHANDRAN ; David Armstrong ; openmap-users@bbn.com
Sent: Tuesday, December 11, 2001 12:10 AM
Subject: Re: Adding shape layers
Hi Anoop,
Are you sure that the openmap.properties file being read is the one you
are modifying? Can you see your new layer on the Layers Menu or on the
Layer Panel?
For applets, the openmap.properties has to be in the codebase.
- Don
On Monday, December 10, 2001, at 04:14 AM, anoop wrote:
> Hi,
> i have not been able to add my own shape layers to the omapplet.
> Using ShapeIndex i have generated a .ssx file and hv also edited the
> openmap.properties to add another layer, but there has been no
> difference at all on the map. Is there something else that i need to
> modify?
>
> thanx\
> anoop
>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Donald Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
--
[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"]
-- [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 Tue Dec 11 01:04:04 2001
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:32 EDT