Hi openmap-users,
I'm having some issues easily changing property values and using the
changed values at runtime. I'm trying to change the RPF map path so the
CADRG layer will update while the application is running.
Is there an easier way to update the property for the CADRG layer then
the following? This way works but seems kludgy.
MapHandler mapHandler = omOverlayMapPanel.getMapHandler();
PropertyHandler propertyHandler = omOverlayMapPanel.getPropertyHandler();
propertyHandler.addProperty("jrpf.paths", "/my/new/path");
LayerHandler layerHandler =
mapHandler.get(com.bbn.openmap.LayerHandler.class);
Layer[] layers = layerHandler.getLayers();
for (Layer layer : layers) {
if (layer instanceof RpfLayer) {
((RpfLayer) layer).setProperties("jrpf",
propertyHandler.getProperties("jrpf"));
}
}
Thanks,
--
Marc Benstein
505-830-6763
--
[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 22 2011 - 17:57:49 EDT