|
1) for both image and map cases: how can I auto-fit the diagram areas to the image or map? I loaded GIF image as background and gets distorted. I thought the best way could be to stretch or shrink the diagram area based on the background image size. Obviously, this should apply to the shp file too, right? |
Please confirm us whether your requirement is to set the diagram size as per size of the maps control? if so, we suggest you to use diagram.Model’s LogicalSize property and set the value of map control’s size. please refer to the below code example.
Code example:
[VB]
'setting the diagram's model size as MapsControl size to fit the diagram...
Dim ctrlNode As New ControlNode(mapsControl1, New RectangleF(New PointF(0, 0), mapsControl1.Size))
Me.diagram1.Model.LogicalSize = mapsControl1.Size
If we misunderstood your requirement, please share us more information about your requirement to set the size of the diagram which will help us to analyze further and provide you a better solution.
|
|
2) since most of the background maps that I use are with real-world coordinats (latitude and altitude), I would like to use custom coordinates on the diagram, i.e, x and y are latitude and longitude instead of the screen coordinates |
Based on our internal analyze, we found that we cannot set the diagram coordinates from the map control’s real-world coordinates (i.e. latitude and altitude) values. |