RE: [OpenMap Users] How to insert A symbol of the milStd2525 (UNCLASSIFIED)

From: Lackey, Michael B. (SED/BTI) <"Lackey,>
Date: Thu, 20 Sep 2007 09:17:01 -0500

Classification: UNCLASSIFIED
Caveats: NONE

I did not find a way to do this without writing some code. But also, at that time, Openmap was new subject for me, so maybe I just did not know. This is what I did. If anyone knows better way, please say so.

(1) Used "Location" layer by modifying the openmap.properties file.

(2) Created data handler for the layer by modifying file BasicLocationHandler.java to fit my needs.

(3) Created icons using milStd2525_png.jar file. There are some additional helper tools in tools/symbology/milstd2525 folder.

(4) Placed the icons on the map by adding them to the data handler.

Once you understand what a data handler does, the rest is easy. Look at LocationLayer.prepare() and BasicLocationHandler.get() for examples.

Mike Lackey

-----Original Message-----
From: owner-openmap-users_at_bbn.com [mailto:owner-openmap-users_at_bbn.com] On Behalf Of Magdalini Zachariadou
Sent: Thursday, September 20, 2007 7:20 AM
To: openmap-users_at_bbn.com
Subject: [OpenMap Users] How to insert A symbol of the milStd2525

Hello to all.
I would like to ask if anyone knows how to insert in a layer a symbol of milStd2525.
 
here is the code of my layer.
 
import java.awt.*;
import com.bbn.openmap.Layer;
import com.bbn.openmap.event.ProjectionEvent;
 
public class FirstLayers extends Layer {
    public FirstLayers {
    }
    public void paint(Graphiccs g){
    }
    public void projectionChangd(ProjectionEvent e){} }
 
 
How should I go on? I would like to insert and position in the FirstLayer a symbol of the milStd2525 in order to be able to see it in the mapbean I have created.
 
Thanks in advance.
 

________________________________

Si comunica che a seguito del cambiamento di ragione sociale della nostra ditta da "Oerlikon Contraves SpA" a "Rheinmetall Italia SpA", a partire dal 01/08/2007 il dominio di posta elettronica oci.it č stato sostituito dal nuovo dominio rheinmetall.it.
Tutti gli indirizzi n.cognome_at_oci.it esistenti sono sostituiti dai corrispondenti n.cognome_at_rheinmetall.it <mailto:n.cognome_at_rheinmetall.it> ; il vecchio dominio continuerą a funzionare, in ricezione, sino al 31/12/2007.

Please be informed that the mail domain oci.it has changed to the new domain rheinmetall.it, as a consequence of the company name change from "Oerlikon Contraves SpA" to "Rheinmetall Italia SpA".
All present n.surname_at_oci.it <mailto:n.surname_at_oci.it> e-mail addresses have been replaced by the corresponding n.surname_at_rheinmetall.it <mailto:n.surname_at_rheinmetall.it> . Old addresses n.surname_at_oci.it <mailto:n.surname_at_oci.it> will still be active in reception only until 31/12/2007.

Classification: UNCLASSIFIED
Caveats: NONE

--
[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 Thu Sep 20 2007 - 10:18:29 EDT

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