[OpenMap Users] How to use the getPathOnRoad method from the VPFRoadLayer?

From: <James.Lappano_at_l-3com.com>
Date: Thu, 14 Jul 2011 14:25:51 -0500

Hello,

 

I am looking to use the method getPathOnRoad(LatLonPoint start,
LatLonPoint end) from the VPFRoadLayer. I am however running into
problems setting it up. I am currently getting roadl data from vmap
level 0 into the layer and it draws the roads on the layer. However, the
road container in the RoadFinder helper has an empty list of roads.
Therefore when calling the getPathOnRoad I get a null reference
exception. I am using the following properties:

                Property.put(VPFLayer.PrettyNameProperty, "Roads");

                Property.put(VPFLayer.coverageTypeProperty, "trans");

                Property.put("roadl.lineColor", "FFFF00");

                Property.put(VPFRoadLayer.DrawIntersectionsProperty,
Boolean.toString(true));

                Property.put(VPFRoadLayer.DrawResultsProperty,
Boolean.toString(true));

 

I feel that I am not setting the layer up properly or not calling
functions in certain order. If you can add your input, I will appreciate
it.

 

Thank you.

 

 

 



--
[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 Jul 14 2011 - 15:29:07 EDT

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