windows phone 8 - Nokia HERE map plot multiple locations c# -
I am developing a Windows Phone 8 app in C # and XAML. I have to plot several places using map SDK here. I have latitude, underline and title attributes.
http://here.com/map=29.1491875,75.7216527,17/title=Fancy%20Stationers http://here.com/map = 29.1491875,75.7216527,17/title = Fancy % 20Stationers http://here.com/map=28.5415839,77.2550147,17/title=Future%20Forward http://here.com/map=28.651879,77.187967,17/title = Hotline% 20 Communication http: // here .com / map = 28.831140,77.074928,17 / title = Jindal% 20Agencies http://here.com/map=28.7,77.14,17/title=Ace%20Communicationhttp: // here.com/map=28.6904, 76.9409,17 / title = Cell% 20Solutions http://here.com/map=28.54,77.27,17/title=Communication%20Solution http://here.com/map=29.17, 77.21,17 / title = Dexter http : //here.com/map=28.65,77.09,17/title=Hotline%20Communications http://here.com/map=28.47,77.04,17/title=Instant%20Solutions
< P> Is there any way to do this?
Links in the links then try the code below
foreach (Var node in list of lists) {if (loc .included in it ("map =")) {loc = loc.Substring (20); Coordinates = loc.Split (','); NewCoordinate.Coordinates.Longitude = (coordinate! = Zero? Double. Purse (coordinate [0]): 0.00); NewCoordinate.Coordinates.Latitude = (coordinate! = Tap? Double. Purse (coordinate [1]): 0.00); }} CoOrdinates.Add (newCoordinate);
List all links by adding loops and coordinates that are a list of GeoCoordinate.
Once you get the list of coordinates, add them to the map.
foreach (different core in cooperation) {mapoverlaw myLocOverlay = new map overlay (); MyLocOverlay.PositionOrigin = New point (0.5, 0.5); MyLocOverlay.GeoCoordinate = New GeoCoordinate (); MyLocOverlay.GeoCoordinate.Latitude = cor.Coordinates.Longitude; MyLocOverlay.GeoCoordinate.Longitude = cor.Coordinates.Latitude; MyLocOverlay.Content = CreateShape (myLocOverlay.GeoCoordinate.Latitude, myLocOverlay.GeoCoordinate.Longitude); // MapLayer myLocLayer = Create a map-layer to include MapOverlay = new mappler (); MyLocLayer.Add (myLocOverlay); // MapLayer Add mapWithMyLocation.Layers.Add (myLocLayer) to the map; } Private polygon build cap (double latitude, double longitude) {polygon mainoline = new polygon (); MyPolygon.Points.Add (new point (4, 0)); MyPolygon.Points.Add (new point (22, 0)); MyPolygon.Points.Add (new point (4, 60)); MyPolygon.Stroke = New SolidColorBrush (Colors.Red); MyPolygon.Fill = New SolidColorBrush (Colors.Green); MyPolygon.SetValue (Grid.RowProperty, 1); MyPolygon.SetValue (Grid.ColumnProperty, 0); MyPolygon.Tag = New GeoCoordinate (latitude, longitude); MyPolygon.Tap + = MyPolygon_Tap; Return MyPolygon; }
Comments
Post a Comment