?? openmap.properties
字號:
# **********************************************************************# # <copyright># # BBN Technologies, a Verizon Company# 10 Moulton Street# Cambridge, MA 02138# (617) 873-8000# # Copyright (C) BBNT Solutions LLC. All rights reserved.# # </copyright># **********************************************************************# # $Source: /cvs/distapps/openmap/src/openmap/com/bbn/openmap/examples/beanbox/openmap.properties,v $# $RCSfile: openmap.properties,v $# $Revision: 1.1.1.1 $# $Date: 2003/02/14 21:35:48 $# $Author: dietrick $# # **********************************************************************## WHAT IS THIS FILE?## This is a generic OpenMap properties file, which controls how# components are loaded into the OpenMap application. It specifies# the initial projection the map should have when OpenMap is started,# the layers that should be available, which ones should be turned on,# and lets you adjust all the layers' attributes for their startup# configuration. Most importantly, this file also lets you add and# remove different components from the application itself. You can# modify it with any text editor you like.## WHAT ARE PROPERTIES?# # Java properties are a set of key=value pairs. The key is the name# of the thing you are setting, and the value is what you are setting# it to. There are a couple of things to look for that we do with key# values in this properties file.## First, all the properties that can be set for a component are# *hopefully* listed in the Javadocs (Java API documentation). If a# component is specified as a com.bbn.openmap.PropertyConsumer, it# will be given a change to configure itself based on the settings# within the properties file. Components can be layers or any other# part of the OpenMap application.## Secondly, the keys are scoped to focus the value to a specific# instance of a components. If there are more that one layer of a# specific type (say, two ShapeLayers, one for roads and one for# rivers), the names of they keys will have a different prefix for the# key. For instance, ShapeLayers have a lineColor attribute you can# set in this file, and the value used is a hexidecimal value for an# ARGB color (transparency (A), red (R), green (G), blue (B)):# # For a red, non-transparent color for the line.# lineColor=FFFF0000# # But there are two layers - to scope the property for different# layers, a prefix must be added to the property, separated by a '.':## roads.lineColor=FFFF0000# rivers.lineColor=FF0000FF## In this case, the roads layer has a red line color and the rivers# layer has a blue line color. The prefix 'roads' and 'rivers' is# something picked to your liking and used only within this property# file, and is referred to in OpenMap documentation as a marker name.# Marker names are first used in a list - the openmap.layers property# is a perfect example:## openmap.layers=first second third## In this example, I've chosen first, second and third to be marker# names of three different layers. Later in the properties file, I# would use these marker names to define the layers and each layer's# attributes. For the 'first' layer, I'll define a ShapeLayer:## # All layers require a class name that defines which one to use# first.class=com.bbn.openmap.layer.shape.ShapeLayer## # And a pretty name to use in the GUI# first.prettyName=Roads## # Now come properties that are particular to ShapeLayers:## # These first two are mandatory for the ShapeLayer:# first.shapeFile=<path to shape file (.shp)># first.spatialIndex=<path to spatial index file (.ssx)>## # These are optional, and override the defaults set in the ShapeLayer:# first.lineColor=FFFF0000# first.lineWidth=2## You do this for each layer listed. To add a layer to the# application, you make up a marker name, add it to the list, and then# define a set of properties for it using the marker name as a prefix.## This marker name list paradigm is used throughout the properties# file. It's an important concept to understand before modifying this# file.## HOW MANY PROPERTIES FILES ARE THERE?## OpenMap looks for this file in several different places. When it# finds one, it loads all the properties, and moves on. If two# properties have the same key, the last version read wins. The most# important place to keep a version of the openmap.properties file is# a personalized one in your home directory or profile directory.# This is the last one read. It also lets you personalize your# application setup and not affect anyone else using the OpenMap# installation.## OK, lets define the map!############################################################# These properties define the formatters the Simple Http # Image Server uses. The default formatter is the first one# in the list.# The layers property can be used to override the # openmap.startUpLayers property as the default layers.###########################################################formatters=gif jpeggif.class =com.bbn.openmap.image.AcmeGifFormatterjpeg.class=com.bbn.openmap.image.SunJPEGFormatter#layers=date drawing daynight graticule shapePolitical tz# #################################################### These properties define the starting projection of the map. # These properties are listed in com.bbn.openmap.Environment.java,# and affect the initialization of the application.# #################################################### Latitude and longitude in decimal degreesopenmap.Latitude=41.5fopenmap.Longitude=-71f# Scale: zoom level (1:scale)openmap.Scale=10000000f# Projection type to start the map with. Try "cadrg", "orthographic",# which are projection IDs. Check a particular projection class for# it's ID string.openmap.Projection=mercator# Width and Height of map, in pixelsopenmap.Width=800openmap.Height=600# Change this for a different title in the main window.openmap.Title=OpenMap(tm)# pixel X/Y window position (if values < 0, then center window on screen)openmap.x=-1openmap.y=-1# The background color of the map, in hex AARRGGBB values (AA is# transparancy, RR, GG and BB are red, green and blue in hex values# between 00-FF (0-255)).openmap.BackgroundColor=FF89C5F9# Here is a property that lets you add debug statements to the# application, to get more informative printouts detailing what is# going on in the application. Each source file may Debug statements# throughout it (Debug.debugging("keyword") or# Debug.message("keyword", "statement")), and you can turn those# statements on by adding those keywords to this list. Follows the# marker name paradigm, with space-separated names.#openmap.Debug=basic# Ironically, the "properties" property, which details where the# PropertyHandler is looking for its properties, won't work here.# #################################################### These are miscellaneous variables for the OpenMap application.# #################################################### How to lauch a browser to display additional information.# Windows example: openmap.WebBrowser=C:\\program files\\internet explorer\\iexplore.exeopenmap.WebBrowser=/usr/bin/netscape -install# Used for creating web pages for the browseropenmap.TempDirectory=/tmp# Help web pagesopenmap.HelpURL=http://openmap.bbn.com/doc/user-guide.html# Use internal frames as an application - used to be gui.UseInternalFramesopenmap.UseInternalFrames=false# OpenMap has a Debug messaging mechanism that lets you set certain# keywords as environment variables (-Ddebug.keyword) to enable# printouts from different objects. The code contains these keywords,# and by looking at a classes' code, you can figure out what the# keywords are (look for Debug.message("keyword", "message") and 'if# (Debug.debugging("keyword")' statements). You can enable these# messages by putting those keywords in a space-separated list in this# property. If you don't want extra messages, you can ignore this# property and leave it empty.#openmap.Debug=# You may be trying to run OpenMap as an applet, with the data files# in their own jar file. It's difficult to get the applet to look in# a data jar file if there are no classes in it (I couldn't find a# solution to this). So, OpenMap now has a workaround. You can use# the com.bbn.openmap.io.AppletDataNugget class to create a# package-less, empty class to put at the root of your data jar file# (JavaDocs contains instructions, and there is a usage statement# printout if you run the class). It might be good practice to name# this class the same name as the jar file itself. Put the name of# the class (or classes) that is in the data jar file in this list,# and the BinaryFile will be able to find it. If you aren't running# as an applet, or your data is not in a jar file by itself, you don't# need to use this property.#openmap.appletDataNuggets=# #################################################### These properties define the general components to use in the# application, OTHER than layers. Notice the marker name list. You# can add and removed parts of the application here, simply by# adjusting this marker name list and adding properties for that# marker name. Note the order in which menu objects are important,
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -