Hi,
Is there a way to add real-time graphics to a map?
I found a sample in the wiki explaining how to add static graphs to the map using ZedGraph library:
wiki.thinkgeo.com/wiki/Map_S…s#Zedgraph
And there is a topic on FAQ page saying “We will have several projects showing how to integrate other types of charts to your map”:
wiki.thinkgeo.com/wiki/Map_S…the_map.3F
Where can I find those projects?
Also, I’d like to add real time bar charts to the map using Telerik RadControls:
telerik.com/products/wpf/controls.aspx
Is it possible to do?
Thanks in advance,
Hugo.
Add Real Time Charts To The Map
Hi Hugo,
Here’s the link for all the available samples wiki.thinkgeo.com/wiki/Map_Suite_Wpf_Desktop_Edition_All_Samples. But I am afraid the other chart samples are not ready yet.
But we can do the real-time chart using Telerik RadContorl. Basically it’s pretty much the same as Zedgraph control.
1. We need create a CustomRadControlStyle inherent from LineStyle, AreaStyle or PoinStyle based on what kind of data you are going to deal with.
2. Override the DrawCore method in the CustomStyle and use RadControl to generate chart image and draw it on the map.
3. Define a layer to hook up with your real-time data, and apply the CustomRadControlStyle on it.
4. After the map been added into the map control, you will also need a timer in your app to refresh the entire map or just the single real-time data layer.
Please feel free to contact us if you have any questions.
Thanks,
Jack
Hi Hugo,
Thanks for your post and welcome to MapSuite World,
Attached sample could show you a basic idea for the fucntionality, would you please try it?
if you have any more question , please feel free to let us know.
Best Regards
Summer
WpfPost11431.zip (101 KB)
I didn’t had the time to check the sample you sent. I’ll check as soon as I can.
But I have another question based on the first reply.
Instead of using LineStyle, AreaStyle or PointStyle, would it be possible to inherit from Marker and use a timer to refresh the ImageSource property?
Hi Hugo,
Hope the sample coudl be helpful. It generate image by Telerik RadControls and render that by ZedGraph control.
About “inherit from Marker”, would you please check following steps.
1. You could use attached code use a marker to show a image created by Telerik RadControls and this way the image location could move with the marker’s location.
2. I think you could refresh map by timer and use the marker.ImageSource to change the image created by Telerik RadControls
Regards,
Don
Post11431.txt (676 Bytes)