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!
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.aspxI 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
Thanks to you guys who have answered. It sounds like Flex really doesn't have an existing solution for something as basic as maptips or tooltips or whatever they are called. In the .NET apps I can just add a few lines of code to have a maptip for a layer and it does not require a recompile. I do currently have a widget similar to the cemetery one posted, which is a modified search widget. I also have a couple layers that don't require symbology and are small datasets where I was able to use the live layer widget. I guess for small datasets that are points I could add some filter and multiple symbol functionality to the livelayer widget. I don't think I could use the top layer as a maptip strategy because we have so many layers in multiple services that I don't think I could ever guarantee that the layer needed was the top layer. Thanks for giving me something to think about though 🙂
So, correct me if I am wrong, but wouldn't that mean I have to recompile the application every time we have to add or remove maptips for a layer, and then replace the application while hundreds of people are using it? You are talking about infopopup.mxml right?thanks for the reply!!
We decided to go with the InfoPopup from the flex sample viewer. The user must click to get the maptip, so it's kind of like a cross between an identify tool and a maptip.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.