KravitzMC / winforms-geplugin-control-library

Automatically exported from code.google.com/p/winforms-geplugin-control-library
GNU General Public License v3.0
0 stars 0 forks source link

SetBoundsView - Calculate altitude #85

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Perhaps, this feature is there already, I just cant seem to find it ? Anyway 
here it goes:

What should this feature enhancement do?
When using the SetBoundsView, the view would be fitted to the object size, in 
order for the user to be able to see the whole collection of 
placemarks/linestrings or whatever, instead of the view being zoomed in to the 
center of the bounds, using the default altitude. Also avoiding the opposite 
where the view is zoomed to far out.

For instance like this:
//create line
var line = KmlHelpers.CreateLineString(_ge, pm1, pm2, id: stringId, width: 3, 
color: new KmlColor(color));
//Getting bounds Bounds 
b = KmlHelpers.ComputeBounds(line);
//Setting the view to the bounds
KmlHelpers.SetBoundsView(_ge, b);

Regards,
TKM

Original issue reported on code.google.com by tho...@gmail.com on 29 Jun 2012 at 12:23

GoogleCodeExporter commented 9 years ago

Original comment by fraser.c...@gmail.com on 17 May 2013 at 10:54

GoogleCodeExporter commented 9 years ago
No further development now that the Earth API is depreciated. 

Original comment by fraser.c...@gmail.com on 17 Dec 2014 at 3:20