//////////////////////////////////////////////////////////////////////////// //--------------------------------- REVISIONS ------------------------------ // Date Name Tracking # Description // --------- ------------------- ------------- ---------------------- // 18JUN2009 James Shen Initial Creation //////////////////////////////////////////////////////////////////////////// /** * Constrcutor. */ public MapDirectionRenderer() { if (MapConfiguration.RoutePen != null) { RoutePen = MapConfiguration.RoutePen; } else { RoutePen = new Pen(new Color(0x7F00FF00, false), 4); } if (MapConfiguration.StartIcon != null) { StartIcon = MapConfiguration.StartIcon; } else { StartIcon = ROUTE_ICONS[0]; } if (MapConfiguration.EndIcon != null) { EndIcon = MapConfiguration.EndIcon; } else { EndIcon = ROUTE_ICONS[0]; } if (MapConfiguration.MiddleIcon != null) { MiddleIcon = MapConfiguration.MiddleIcon; } else { MiddleIcon = ROUTE_ICONS[1]; } _mapDirectionLayer = new MapDirectionLayer(MapLayer.MAP_TILE_WIDTH, MapLayer.MAP_TILE_WIDTH); _mapTileImage = MapLayer.GetAbstractGraphicsFactory() .CreateImage(MapLayer.MAP_TILE_WIDTH, MapLayer.MAP_TILE_WIDTH); _mapTileGraphics = _mapTileImage.GetGraphics(); }
//////////////////////////////////////////////////////////////////////////// //--------------------------------- REVISIONS ------------------------------ // Date Name Tracking # Description // --------- ------------------- ------------- ---------------------- // 18JUN2009 James Shen Initial Creation //////////////////////////////////////////////////////////////////////////// /** * Constrcutor. */ public MapDirectionRenderer() { if (MapConfiguration.RoutePen != null) { RoutePen = MapConfiguration.RoutePen; } else { RoutePen = new Pen(new Color(0x7F00FF00, false), 4); } if (MapConfiguration.StartIcon != null) { StartIcon = MapConfiguration.StartIcon; } else { StartIcon = ROUTE_ICONS[0]; } if (MapConfiguration.EndIcon != null) { EndIcon = MapConfiguration.EndIcon; } else { EndIcon = ROUTE_ICONS[0]; } if (MapConfiguration.MiddleIcon != null) { MiddleIcon = MapConfiguration.MiddleIcon; } else { MiddleIcon = ROUTE_ICONS[1]; } _mapDirectionLayer = new MapDirectionLayer(MapLayer.MAP_TILE_WIDTH, MapLayer.MAP_TILE_WIDTH); _mapTileImage = MapLayer.GetAbstractGraphicsFactory() .CreateImage(MapLayer.MAP_TILE_WIDTH, MapLayer.MAP_TILE_WIDTH); _mapTileGraphics = _mapTileImage.GetGraphics(); }