public static OCStop newOCStop(String stop_code, String stop_id, String stop_name, Double stop_lat, Double stop_lon) { OCStop stop = new OCStop(); stop.stop_id = stop_id; stop.stop_code = stop_code; stop.stop_name = stop_name; stop.stop_lat = stop_lat; stop.stop_lon = stop_lon; return stop; }
public static OCStop newOCStop(String stop_code, String stop_id, String stop_name, Double stop_lat, Double stop_lon) { OCStop stop = new OCStop(); stop.stop_id = stop_id; stop.stop_code = stop_code; stop.stop_name = stop_name; stop.stop_lat = stop_lat; stop.stop_lon = stop_lon; return(stop); }
private static void drawMapMarker(OCStop stop, Color color, MapLayer mapLayer, Boolean action) { // Create a map marker Pushpin pin = new Pushpin(); pin.Background = new SolidColorBrush(color); pin.GeoCoordinate = new GeoCoordinate(stop.stop_lat, stop.stop_lon); if (stop.stop_code.Length > 0) { pin.Name = stop.stop_code + " - " + stop.stop_name; if (action) { pin.Tap += mapPinTapped; } layMarker(pin, stop.stop_lat, stop.stop_lon, mapLayer); } }