Has anyone used balloon popups Map Suite 3.0 Desktop. Can someone give me some help on how to do Popups balloon.
I can find anything on Ballon popups
TIM,
Thanks for your post and welcome you to ThinkGeo MapSuite Desktop Forum!
We do not support the Popups balloons as WebEdition do natively, but we can try to implement our own style to achieve this functionality and effects. Following is the basic steps you can follow to have a try if you are interested:
1) Create your own Style (PopupStyle) which inherits from TextStyle probably.
2) Override the DrawCore, in which use a Popup bitmap to draw the label, then draw the text you want on top of it.
Sorry for the inconvenience now, any more questions just let me know.
Thanks.
Yale
Hi Yale,
Do you have any example to create my own pop up style?
May i know when MapSuite Dektop provide the popup ballons same as WebEdition?
Thanks,
bv
Bv,
Thanks for your post!
Up to now, I have no idea we will have very native support the popup balloons same with Web Edition, because they are totally different. The Web Edition will form a pop up page and load it in Clint side using JavaScript, this is impossible in Desktop version because of lack of “Client side” or JavaScript.
Attachment is a simple demo to simulate the Pop up bitmap functionality. In this demo, you have to mouse move your mouse to the hover of Lawrence, middle of the US to see the result. Of course, you can add much other functionality based on this to make it much more beautiful.
Let me know if you have any problems.
Thanks.
Yale
897-Post5926.zip (11.5 KB)
Yale,
my 2 cents … having a popup ballon similar to web/silverlight edition is a highly requested feature here …
I’ve developped my own logic, but I think that you should provide a built-in support.
Patrick.
Patrick,
We have multiple solutions for balloon popups, but we did not reach a conclusion for the best solution up to now.
It will be very appreciated if you can send us your code snippet about the balloon popup as well as some screen shots to show your scenario, I think it would be very helpful for us. Of course, I am fine if you think it should be kept non-public for some reason.
Let me know if any more questions.
Thanks.
Yale
Yale,
I’m using a third party component to render the balloon (DevExpress) so I cannot share the code that I have not.
However, here is how it works.
This component handles the logic of displaying the ballon at the requested position.
The internal display can be done by providing text (as regular tooltips) ; by drawing to the canvas they provide (owner draw); or by providing a control that they display.
I’m providing a form without bornder and they display it inside their ballon popup.
The final result is very close to GoogleEarth.
The scenario is that I’m using a valuestyle to display a camera picto for point layer.
when user clicked on the picto, the I’m displaying the image with a small description.
Hope this helps.
Patrick.
Patrick,
Thanks for your sharing! I appreciate it very much!
One thing I am not so clear is that “This component handles the logic of displaying the ballon at the requested position.”
In my thinking, I think the third party component (DevExpress) should not care about the balloon position, what the care about is the balloon appearance and size etc.
Thanks again!
Yale
I’m passing ScreenX & ScreenY to display a ballon that points to the clicked feature.
Patrick,
Yes, I agree we need to fix one position to draw the balloon, but this is job should be done by GeoCanvas of MapSuite component instead of DevExpress.
So, this ScreenX & ScreenY should be passed in to GeoCanvas draw after the balloon bitmap received from DevExpress.
Let me know if I am wrong.
Thanks.
Yale
Hi Yale,
Popup ballon is very important feature for me. As i know MapSuite 2.0 provide this feature but not in 3.0.
I’m hope Map Suite can provide this feature in next released. Thanks.
Bv,
Thanks for your suggestions!
I have added the balloon popup support issue to our working tracking system, hopefully we can support it in future.
We will have next public release in near future, so probably we cannot build it in this release. Sorry for the inconvenience now.
Let me know if any more questions.
Thanks.
Yale
We have added Marker which can do the same thing in 4.5.0.0 version of DesktopEdition.
Patrick, if you are still monitoring this thread. I have been asked to build a pop-up display for our app, which also uses DevExpress. I have not investigated the balloon pop-up yet. Could you provide me with a code snippet to get my contractor started off a little faster?
Thanks!
Ted,
Hope Patrick will see this post soon and provide you the code snippet.
James