import urllib params = urllib.urlencode({'username': 'myuser', 'password': 'mypassword'})site = "http://www.mysite.com/login.html"urllib.urlopen(site, params)import <strong class="highlight">urllib</strong> params = <strong class="highlight">urllib</strong>.urlencode({'username': 'myuser', 'password': 'mypassword'}) site = "http://www.mysite.com/login.html" <strong class="highlight">urllib</strong>.urlopen(site, params)
Hi Matt,You are correct, I wrote it for the 1.3 Flex Viewer. I haven't tried porting it to 2.0 yet, but I can't imagine it would be too hard. Unfortunately I don't have a real copy of Flash Builder, I built the widget using the 60 day Trial and unfortunately it has run out. If anyone has an extra copy, let me know.I put the code up on gitHub, including some stuff I was working on before it conked out. I was trying to allow for Placemark flags stored in the KMZ and also for the caching of flags.http://github.com/robotastic/KMLWidgetBrendan -It does support network links. I forgot to re-enable the part the would have it periodic reload them though to get updates. It should just be a couple of lines of code to get that going. The GeoRSS widget does this and I think I left most of the code for it in. - Luke
Good Afternoon,I just uploaded a Widget for displaying KML & KMZ files to the Code Gallery. I wanted to see if anyone had gotten it to work. I only have another week left on my trial version of Flash Builder so I wanted to see if there were things I needed to fix before it expired.The widget is up here: http://resources.esri.com/arcgisserver/apis/flex/index.cfm?fa=codeGalleryDetails&scriptID=16972 - Luke
TypeError: Error #1088: The markup in the document following the root element must be well-formed. at com.esri.solutions.flexviewer.widgets.kmlparser::XmlParser/parse() at com.esri.solutions.flexviewer.widgets.kmlparser.kml::Kml22() at com.esri.solutions.flexviewer.widgets::KMLWidget/loadXML()
Hi Luke,I got it to work, and i'll definitely use it.I think it could be used instead of the bookmarks, as I don't want bookmark saving.deleting.Therefore I'll use your one as it could be a list that is updated outside of the Bookmarks XML Config file.Also, the bookmarks list is littered with coordinates which often is not necessary, therefore your widget looks better.One thing, the icon from the KML is tiny when I go to zoom to a placemark. How is this sized?Not the biggest KML expert, and definitely not the biggest GeoRSS Widget expert... but can can polylines and polygons be added instead of points? That would cap it!Brendan
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.