Click here to Skip to main content
15,889,724 members

Comments by sahabiswarup (Top 200 by date)

sahabiswarup 16-Feb-17 5:50am View    
Thanks for your valuable comment.
sahabiswarup 10-Aug-14 4:57am View    
After applying your logic it works. But now i want to draw a pentagon in google maps. Here is the logic
GooglePoint GP1 = new GooglePoint();
GP1.ID = "GP1";
GP1.Latitude = 22.539547;
GP1.Longitude = 88.263067;

GooglePoint GP2 = new GooglePoint();
GP2.ID = "GP2";
GP2.Latitude = 22.543326;
GP2.Longitude = 88.284530;
GooglePolygon PG1 = new GooglePolygon();
PG1.ID = "PG1";
PG1.FillColor = "#0000FF";
PG1.FillOpacity = 0.4;
PG1.StrokeColor = "#0000FF";
PG1.StrokeOpacity = 1;
PG1.StrokeWeight = 2;
PG1.Points.Add(GP1);
PG1.Points.Add(GP2);
GoogleMapForASPNet1.GoogleMapObject.Polygons.Add(PG1);

Now i want to draw the pentagon dynamically, fetch latitude and longitude from database. So how can that be possible?
sahabiswarup 10-Aug-14 3:52am View    
Deleted
Actually the scenario is i have to point the location dynamically, records are fetched from database. and this following code will addd only one point in the google map
GooglePoint GP1 = new GooglePoint();
GP1.ID = "1";
GP1.Latitude = 43.65669;
GP1.Longitude = -79.44268;
GP1.InfoHTML = "This is point 1";
GoogleMapForASPNet1.GoogleMapObject.Points.Add(GP1);
GooglePoint GP2 = new GooglePoint();
GP2.ID = "2";
GP2.Latitude = 43.66619;
GP2.Longitude = -79.44268;
GP2.InfoHTML = "This is point 2";
GoogleMapForASPNet1.GoogleMapObject.Points.Add(GP2);

and i want to do it dynamically, which code you suggest is not add all the points. Can you please help to solve this?
sahabiswarup 16-May-14 7:39am View    
well, keep this in mind in future. Thanks for your suggestion.
sahabiswarup 16-May-14 6:59am View    
what will you prefer?