POST
|
You just need to publish a map service with your imagery in it. Your config file would need something similar to that below: <layer label="Aerial" type="dynamic" visible="true" url="http://gis-server/ArcGIS/rest/services/Aerial/MapServer"/>
... View more
08-25-2011
05:27 AM
|
0
|
0
|
141
|
POST
|
Thanks Dasa, finally got it to work. Its funny how one space or missing bracket can mess the whole thing up. One other question. Apparently the description also honors carriage returns as the <br> tag added an extra space. Does anyone know a way to make it do single space, the carriage return still leaves it as double space, although this is not a huge problem, it would help the overall size of the popup. Now, that I have that space gone, I think (other than the typing, formatting) I actually like this better as there is more control over how it displays.
... View more
08-10-2011
10:33 AM
|
0
|
0
|
462
|
POST
|
I'm going to have to disagree with you. Not having the ability to "identify" with popups either using the new popups or the SimpleInfoWidget of past releases is a MAJOR problem for me and no I cannot use it due to the bug. I shouldn't have to fight with xml just to get it to do something very simple that it is supposed to do. I already posted the xml files on here and even copied and pasted your example directly and still it did not work. The main config file is not the problem because it worked just fine at 2.3.1 and when I switch back to the popups without the description, it works just fine (albeit with the bug). I will go ahead and post these but I really don't see how it will help as I have already posted them in the past. Part of this has to do with the number of fields I am using, but like I said in the previous post there really is no way around this, I need the popup to display this many fields. EDIT: Keep in mind that the PopUp_parcels_description is incomplete in the description area as I am just trying to make sure it works before I do all of that typing.
... View more
08-10-2011
06:40 AM
|
0
|
0
|
462
|
POST
|
Which one are you working with that works like the popups? If I can't get this problem fixed, this is enough that I can't use the app and will have to use my 2.3.1 version only. Problem is that I like some of the new features. It's a shame that Esri can't seem to write their own software and have to resort to power users like Robert to fix their problems. Thanks Robert for all you do for the Flex community! By the way, I have copied the code you put above and still no dice. I think I am ready to just use a different widget and stop using the popups as clearly they aren't usable. I even looked into decreasing the number of fields I use but it is the way the table comes to me from the county so it would be a huge hassle to pare down the fields everytime I got an update. However, I would note that the county is working on transitioning to the Orion system so it may look different after that conversion. Haven't had any updates since June 30, so I have no idea what it will look like.
... View more
08-10-2011
05:11 AM
|
0
|
0
|
462
|
POST
|
I double checked the field name you mentioned in the REST services directory it is correct. It cuts the n off of the end. That table is not in a geodatabase, I think I just created a dbf file from an Excel spreadsheet. I'm still getting the Could Not Decode error 1090 from the viewer after removing the other square bracket. There is something small that it is not liking. <configuration>
<title>{OwnershipRecords.OWNER}</title>
<description>
<![CDATA [Parcel ID: {OwnershipRecords.PID} <br>
Owner: {OwnershipRecords.OWNER} <br>
Mailing Address: {OwnershipRecords.MAILADDRES} ]]
</description>
<fields>
<field name="OwnershipRecords.PID"/>
<field name="OwnershipRecords.OWNER"/>
<field name="OwnershipRecords.MAILADDRES"/>
<field name="OwnershipRecords.MAILCITY"/>
<field name="OwnershipRecords.MAILST"/>
<field name="OwnershipRecords.MAILZIP"/>
<field name="OwnershipRecords.LOT"/>
<field name="OwnershipRecords.BLK"/>
<field name="OwnershipRecords.TRACT"/>
<field name="Subdiv code table.Subdivisio"/>
<field name="OwnershipRecords.SEC"/>
<field name="OwnershipRecords.TWP"/>
<field name="OwnershipRecords.RNG"/>
<field name="OwnershipRecords.CALCACRES"/>
<field name="OwnershipRecords.PROPNUM"/>
<field name="OwnershipRecords.PROPDIR"/>
<field name="OwnershipRecords.PROPST"/>
<field name="OwnershipRecords.LOTWIDTH"/>
<field name="OwnershipRecords.LOTDEPTH"/>
</fields>
<showattachments>true</showattachments>
</configuration>
... View more
08-09-2011
06:14 AM
|
0
|
0
|
543
|
POST
|
That still doesn't solve the problem, in fact now I'm getting an error thrown. I'm using Notepad++ and one of the options allows me to open in IE and it gives me the following message: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- An opening '[' character was expected. Error processing resource 'file:///O:/acmapflex/popups/PopUp_parcels_description.xml... <![CDATA [[Parcel ID: {OwnershipRecords.PID} ---------^ In the Flex Viewer I get the following error message: http response status: 200 Fault code: Client.CouldNotDecode Fault info: Error #1090 Fault details: null Clearly it has something to do with that opening line, what is CDATA is that C:\Data? If that's the case it should either be a UNC path or something like Oacmapflex instead of CDATA. Also I would note that in Notepad++ it highlights the open and close brackets around that first statement as if something is missing.
... View more
08-09-2011
05:36 AM
|
0
|
0
|
543
|
POST
|
This fix will be part of the next release of the ArcGIS Viewer for Flex. One work-around that might help you in the meantime (if you're not OK with using fewer fields, nor with compiling the source code), is to use the <description> tag. From the documentation on Pop-up configuration files: "By default the pop-up window shows the visible fields in a key-value styled table. Alternatively, you can use the <description> tag to present it in a different manner, for example in a sentence or paragraph structure" http://help.arcgis.com/en/webapps/flexviewer/help/#/Pop_up_configuration_files/01m30000002q000000/ I have attempted this but I'm not sure exactly on the format, I can't get it display like I want. Here's how it is in the example. <configuration>
<title>{NAME}</title>
<description>
<![CDATA[<b>Hurricane {NAME}</b> was a <i>category {CAT}</i> hurricane that occurred in {BASIN} on {TRACK_DATE}. It had a wind speed of {WIND_KTS} knots.]]>
</description>
<fields>
<field name="NAME"/>
<field name="WIND_KTS"/>
<field name="CAT"/>
<field name="BASIN"/>
<field name="TRACK_DATE">
<format dateformat="shortDateShortTime"/>
</field>
</fields>
</configuration> AS of now, this is how I have mine, trying to mimic the sample. It is ignoring the description part and just filling it out like normal, of course, not working on the second click. This is a major enough bug that I feel it should be corrected immediately. <configuration>
<title>{OwnershipRecords.OWNER}</title>
<description>
<![CDATA [[Parcel ID: {OwnershipRecords.PID} <br>
Owner: {OwnershipRecords.OWNER} <br>
Mailing Address: {OwnershipRecords.MAILADDRES} <br>]>
</description>
<fields>
<field name="OwnershipRecords.PID" alias="Parcel ID" visible="true"/>
<field name="OwnershipRecords.OWNER" alias="Owner" visible="true"/>
<field name="OwnershipRecords.MAILADDRES" alias="Mailing Address" visible="true"/>
<field name="OwnershipRecords.MAILCITY" alias="Mailing City" visible="true"/>
<field name="OwnershipRecords.MAILST" alias="Mailing State" visible="true"/>
<field name="OwnershipRecords.MAILZIP" alias="Mailing Zip Code" visible="true"/>
<field name="OwnershipRecords.LOT" alias="Lot" visible="true"/>
<field name="OwnershipRecords.BLK" alias="Block" visible="true"/>
<field name="OwnershipRecords.TRACT" alias="Legal Description" visible="true"/>
<field name="Subdiv code table.Subdivisio" alias="Subdivision" visible="true"/>
<field name="OwnershipRecords.SEC" alias="Section" visible="true"/>
<field name="OwnershipRecords.TWP" alias="Township" visible="true"/>
<field name="OwnershipRecords.RNG" alias="Range" visible="true"/>
<field name="OwnershipRecords.CALCACRES" alias="Acres" visible="true"/>
<field name="OwnershipRecords.PROPNUM" alias="Number" visible="true"/>
<field name="OwnershipRecords.PROPDIR" alias="Direction" visible="true"/>
<field name="OwnershipRecords.PROPST" alias="Street" visible="true"/>
<field name="OwnershipRecords.LOTWIDTH" alias="Lot Width" visible="true"/>
<field name="OwnershipRecords.LOTDEPTH" alias="Lot Depth" visible="true"/>
</fields>
<showattachments>true</showattachments>
</configuration>
... View more
08-08-2011
11:55 AM
|
0
|
0
|
543
|
POST
|
Ned, In the Flex Viewer project right click on src folder in the Package Explorer and choose New > Package and for the name field put com.esri.ags.skins and then paste the PopUpRendererSkin.mxml into that Package/folder and run the Flex Viewer project again. What about those of us using the compiled version? I don't have an src folder and have no idea what the Package Explorer is. The compiled viewer is great if you want a canned version of it. Any customizations apparently require the uncompiled version. This is not very user friendly for the non-developer crowd.
... View more
08-08-2011
06:05 AM
|
0
|
0
|
309
|
POST
|
I have to agree with Pierre, those of us using the compiled version need the compiled fix. This is after all the Viewer forum not the API forum.
... View more
08-08-2011
05:56 AM
|
0
|
0
|
543
|
POST
|
I have this strange issue with popups. They work fine for the first parcel I click on but then for subsequent parcels all I get is the title field and a blank popup with the zoom in link at the bottom. Any idea why this would happen?
... View more
08-08-2011
05:46 AM
|
0
|
0
|
163
|
POST
|
Wow, thanks. I'll have to play around with it next week (because I'll need to create some new map services) but I tried it out and it seems to do the trick. I might have to do this with several other layers too, will have alot of map services but sometimes you gotta do what you gotta do to get things correct. It works kind of strange because one basemap is cached and the other is dynamic but it seems to work and as far as the application goes, it appears to not make any difference. The user just can't turn it off, so I'll have to make it seem like it is part of the basemap. Actually, I guess the parcels can't be done this way because I have popups enabled, oh well, they are not the problem, the problem was the address points and the street names which don't need to be identifiable.
... View more
08-05-2011
01:41 PM
|
0
|
0
|
628
|
POST
|
Is it possible to have operational layers turned on for one base layer and not another? I have my addresses and street labels as an operational layer and I want them symbolized differently for the aerial map than the Streets and Topo maps. I thought the best way is just to cache the Topo and Streets as they will be used less than Aerial and just turn off those operational layers on the map. However, even better might be to have specific operational layers for each base map. I just can't think of a good way to do this. The only other possibility would be to just have one base layer in a map and have multiple webmaps but that is a huge headache when I can just have multiple basemaps in one webmap.
... View more
08-04-2011
01:38 PM
|
0
|
4
|
852
|
POST
|
Thanks Robert, that worked. Sometimes Cut and paste can do that to you. What we really need is some sort of program that would automatically upgrade the xml to the new version so that cut and paste was not necessary. Also, any ideas why in IE 9 I have so many problems getting it to show the changes? Firefox has no problems. I have installed a cleaner that helps with this but it seems that simply clearing the cache should do it.
... View more
08-04-2011
07:47 AM
|
0
|
0
|
299
|
POST
|
Not sure what happened, everything was humming along just fine and blam suddenly I have an application error that I can't seem to resolve. The error reads as follows: http response status: 200 Fault code: Client.CouldNotDecode Fault info: Error #1085 Fault details: null I figure I must have deleted something accidently from the config file but I can't seem to locate it. Any ideas? <?xml version="1.0" ?>
<!--
////////////////////////////////////////////////////////////////////////////////
//
// Read more about ArcGIS Viewer for Flex - http://links.esri.com/flexviewer
//
////////////////////////////////////////////////////////////////////////////////
-->
<configuration>
<title>City of Arkansas City</title>
<subtitle>GIS Webmap</subtitle>
<logo>assets/images/ArkCitylogosmall.png</logo>
<style>
<!-- Black Gold -->
<!--<colors>0xFFFFFF,0x333333,0x101010,0x000000,0xFFD700</colors>-->
<!--Cobalt Blue-->
<colors>0xCEE7F4,0x39628C,0x355D89,0x294867,0xCEE7F4</colors>
<!--Desert Sand-->
<!--<colors>0x4C2600,0xFFEDB8,0xB2AD81,0x6F6750,0x4C2600</colors>-->
<!--Graphite Gray-->
<!--<colors>0xCCCCCC,0x777777,0x555555,0x333333,0xCCCCCC</colors>-->
<!--Sage Green-->
<!--<colors>0x333333,0xAFCFAF,0xFFFFAB,0xEAEA9D,0x333333</colors>-->
<!--Sky Blue-->
<!--<colors>0x444444,0xEBF4FF,0xEBF4FF,0xDEEBFF,0x444444</colors>-->
<alpha>0.8</alpha>
</style>
<!-- replace the following url with your own geometryservice -->
<geometryservice url="http://gis-server/arcgis/services/Geometry/GeometryServer" />
<!-- UI elements -->
<widget left="10" top="50" config="widgets/Navigation/NavigationWidget.xml" url="widgets/Navigation/NavigationWidget.swf"/>
<widget right="-2" bottom="-2" config="widgets/OverviewMap/OverviewMapWidget.xml" url="widgets/OverviewMap/OverviewMapWidget.swf"/>
<widget right="20" top="55" config="widgets/MapSwitcher/MapSwitcherWidget.xml" url="widgets/MapSwitcher/MapSwitcherWidget.swf"/>
<widget left="0" top="0" config="widgets/HeaderController/HeaderControllerWidget.xml" url="widgets/HeaderController/HeaderControllerWidget.swf"/>
<widget left="3" bottom="3" config="widgets/Coordinate/CoordinateWidget.xml" url="widgets/Coordinate/CoordinateWidget.swf"/>
<map wraparound180="true" initialextent="-10803160 4447456 -10801480 4448154" fullextent="-10854000 4445400 -10727000 4503000" top="40">
<basemaps>
<layer label="Streets" type="tiled" visible="true"
url="http://gis-server/ArcGIS/rest/services/StreetsBase/MapServer"/>
<layer label="Aerial" type="tiled" visible="false"
url="http://gis-server/ArcGIS/rest/services/Aerial/MapServer"/>
<layer label="Topo" type="tiled" visible="false"
url="http://gis-server/ArcGIS/rest/services/Topographic/MapServer"/>
</basemaps>
<operationallayers>
<layer label="Demographics" type="tiled" visible="false" alpha="0.5"
url="http://server.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Median_Household_Income/MapServer">
<sublayer id="1" popupconfig="popups/PopUp_Demographics_BlockGroups.xml"/>
<sublayer id="2" popupconfig="popups/PopUp_Demographics_Tracts.xml"/>
<sublayer id="3" popupconfig="popups/PopUp_Demographics_Counties.xml"/>
<sublayer id="4" popupconfig="popups/PopUp_Demographics_States.xml"/>
</layer>
<layer label="Addresses" type="dynamic" visible="true"
url="http://gis-server/ArcGIS/rest/services/Addresses-Streets/MapServer"/>
<layer label="Utilities" type="dynamic" visible="false"
url="http://gis-server/ArcGIS/rest/services/Utilities/MapServer"/>
<layer label="Parcels" type="dynamic" visible="true"
url="http://gis-server/ArcGIS/rest/services/Parcels/MapServer">
<sublayer id="16" popupconfig="popups/PopUp_parcels.xml"/>
</operationallayers>
</map>
<!-- widgets organized into widget containers that manage close/open etc -->
<!-- supported layout property options: horizontal(default)|float|vertical|fix-->
<widgetcontainer layout="float">
<widget label="Bookmarks" left="430" top="90"
icon="assets/images/i_bookmark.png"
config="widgets/Bookmark/BookmarkWidget.xml"
url="widgets/Bookmark/BookmarkWidget.swf"/>
<widget label="Find an address" left="100" top="90" preload="open"
icon="assets/images/i_target.png"
config="widgets/Locate/LocateWidget_ArkCity.xml"
url="widgets/Locate/LocateWidget.swf"/>
<!--<widget label="Search" left="80" top="280"
icon="assets/images/i_search.png"
config="widgets/Search/SearchWidget_Louisville.xml"
url="widgets/Search/SearchWidget.swf"/> -->
<widget label="Draw and Measure" left="60" top="400"
icon="assets/images/i_draw2.png"
config="widgets/Draw/DrawWidget.xml"
url="widgets/Draw/DrawWidget.swf"/>
<widget label="Print" left="390" top="400"
icon="assets/images/i_print.png"
config="widgets/myPrint/myPrintWidget.xml"
url="widgets/myPrint/myPrintWidget.swf"/>
<widget label="Street View"
icon="assets/images/i_gsv.png"
config="widgets/FrStreetView/FrStreetView.xml"
url="widgets/FrStreetView/FrStreetView.swf"/>
<widget label="Layer List" preload="open"
icon="assets/images/i_layers.png"
config="widgets/LayerList/LayerListWidget.xml"
url="widgets/LayerList/LayerListWidget.swf"/>
<!--
<widget label="My first widget"
icon="assets/images/i_widget.png"
config="widgets/Samples/HelloWorld/HelloWorldWidget.xml"
url="widgets/Samples/HelloWorld/HelloWorldWidget.swf"/>
-->
</widgetcontainer>
</configuration>
... View more
08-03-2011
01:35 PM
|
0
|
0
|
299
|