Select to view content in your preferred language

Flex maptips

3034
17
06-25-2010 11:16 AM
NeoGeo
by
Frequent Contributor
My question is what are other people doing for maptips in Flex?  I ask because it seems crazy to have to compile in support for maptips for a specific layer when the layers are constantly going to be changing (at least for us).  There is the livelayerwidget but it does not support multiple symbols or polylines/polygon as far as I can tell.  So what are you guys using?

Thanks!
Tags (2)
0 Kudos
17 Replies
NeoGeo
by
Frequent Contributor
The examples provided still look like they would require recompiling the whole app unless you broke the parameters out into an xml file.  When I talk about having to recompile, I am not referring to whether the actual data is dynamic, I mean that from day to day we have different layers that we want maptips on which we may or may not want the next day and I can't swap out the whole application while one hundred plus people are using it in the middle of an emergency just to hardcode in a layer name.  In the widget model I see how you set up a configuration xml file and read all the settings from it, but this would not be a widget so I guess I would have to set up and read the xml file differently?  Unless... could you create it as a widget and not have the widget windows or something since they would be unnecessary?  Has anyone else done anything like this 

I thank all of you that responded because new ideas always help point me in the right direction! 🙂

Thanks!!
0 Kudos
BobCarberry
Deactivated User
We discovered that map tips were one of those things that is an easy concept to those of use that have used ArcGIS, but not so easy in the flex world (at least for us beginners with Flex).

Here is an app we have that makes use of something like map tips.  It is a Cemetery Viewer where a person can search by name, date or plot numbers.  Once a search is made, records are returned.  Click on a record and it will zoom to where the maptips are visible.

The searched records are binoculars.  The other symbols are headstones (orange dots), family markers (headstone symbol) and unmarked graves (green).  You can hover over the symbols and the name, date of death and photo link pops up.  These are the "map tips" that are governed by the widget that is minimized (called Map Popups).  Open the widget and you can turn the maptips off for any of the layers.  The layers are in separate feature classes and one of them is an old shapefile.

(Search for last name "Furman" for example)
http://www.greenvillesc.gov/Culture/History/cemeteries/CemeteryViewer.aspx

I can't remember how our CemeteryMapTips.mxml started - either from the Search.mxml, Live Layer Widget.mxml or something else.  But it does utilize the InfoPopup.mxml (changes made in it also).  And a configurable CemeteryMapTips.xml that allows different fields to be displayed.  We had to keep the maptip simple b/c of so many points.

The code isn't pretty - it isn't cleaned up and you would have to search for the changes we made in all of the scripts and alter it to adapt to your situation. Lots of stuff hardcoded.  But I will send it if you think it will help and you provide your email address.

Carmen



Carmen,

The widget that you built for controling the layers for the maptips looks like what I have been looking for.  Would you mind sharing your code with me?  My e-mail is bcarberry@sjcfl.us.  Thanks!
0 Kudos
KristenJohnsey
Deactivated User
Carmen,

The widget that you built for controling the layers for the maptips looks like what I have been looking for.  Would you mind sharing your code with me?  My e-mail is bcarberry@sjcfl.us.  Thanks!


I would like to take a look at the code, too. My email is gregb@hamiltontn.gov. Thanks!
0 Kudos
GeraldLee__GISP
Frequent Contributor
i could use this too except i dont have adobe flex builder or really know squat about adobe flex builder. i have only used widgets that were already complied and i just edited those. anyway to make that happen would be MUCH appreciated..
thanks for any help,
Gerald
0 Kudos
RashidMalik
New Contributor
Carmen,

I like how you are using MapTips in your application.  I need similar functionality for the application I am wokring on.  Could you please share the code with me as well at rmalik@dhmh.state.md.us.  Thanks, Rashid
0 Kudos
BrendanCunningham
Emerging Contributor
Hi all,
Can I also echo the idea that this is some great functionality...
I'd be very grateful if you could please send on the code to brendan.cunningham@kilkennycoco.ie?
The Map Tips issue has been bugging me (and especially end users) for a long time now.
Thanks a lot,
Brendan
0 Kudos
__3
by
Emerging Contributor
In flexviewer ,I want add maptip when mouse move ,can anyone help me ? yueyou216@163.com
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
0 Kudos