POST
|
I don't have the answer, but I am also very interested in knowing whether this is possible in ArcGIS Online. Can clicking a polygon go directly to a link, instead of opening an information window which has the link inside? Thanks.
... View more
10-30-2013
02:22 PM
|
0
|
0
|
177
|
POST
|
A more simple question: Can I set bufferParameters.geometries to be "the features that are currently selected in my feature layer"? If so, what is the exact syntax for doing that? My feature layer is just called fLayer. I see that selectedFeatures is a property of feature layer. I tried bufferParameters.geometries = [fLayer.selectedFeatures]; but so far that hasn't worked. Tips? I think that would be helpful because setting bufferParameters.geometries as event.feature.geometry or event.graphic.geometry is making things harder for me to code because it depends on the event. Thank you.
... View more
02-24-2012
02:55 PM
|
0
|
0
|
127
|
POST
|
Hello. I am altering the "attribute inspector outside of map" flex sample. Using parcels. I would really like to be able to buffer whatever I select and then add to the selection based on that buffer. So - choose one or more parcels, buffer around them, and select more parcels that are within that buffer distance. (Plain old intersect is fine). I am able to do the selection of one parcel or a group of parcels and buffer them. There is still an issue with that but I had it working okay. My biggest issue, however, is selecting more parcels based on the buffer. THE REALLY GOOD THING is that my selectByBuffer method DOES select a larger group of parcels based on the buffer. That is wonderful. THE REALLY BAD THING is that once it does that, the buffer graphic disappears and a flash player error comes up and I can't do anything else. The error is RangeError: Error #2006: The supplied index is out of bounds. Also bad - I used to be able to select different parcels and have a series of buffer graphics on the screen, but now I can only have one. I do not understand every bit of mxml code but I'm doing my best to piece together things from samples. I'm willing to study up but it helps a LOT to have someone point out a few major flaws for me! That said, I am sure there are many major flaws in my code. But my main question is why I encountered big problems once I tried to select more parcels using the buffer. (the selectByBuffer method) In my code I make buffers in two different places - one is meant to be for one parcel that the the user clicks on the map, the other is supposed to be for a group of parcels that the user selects using the "Rectangle Select, Buffer" button. This probably needs to be changed but that's what I got to work for me. I tried to make things more clear by keeping the buffering in a separate function - but I didn't know how to get around needing "event.feature.geometry" (from the selected parcel) which is used to set buffer parameters. Again...many issues I'm sure, but lead me to some more clarity if you can! Thank you. CODE ATTACHED.
... View more
02-23-2012
01:25 PM
|
0
|
1
|
2188
|
POST
|
Not quite sure if this is what you were asking - I had the issue of not being able to load and view the icons on the draw toolbar. If that is your problem, you need to have a src/assets folder in your flex project with the icon images inside it. Here is the help I got: http://forums.arcgis.com/threads/50923-Icons-for-quot-select-parcels-quot
... View more
02-21-2012
10:46 AM
|
0
|
0
|
152
|
POST
|
Great, thanks for pointing that out. So do I need to put them online and link it to the icon, or just take out the @Embed part and put in the folder path for the location on my computer? I'll start testing... Original Code: <fx:Object icon="@Embed(source='assets/i_draw_line.png')" label="POLYLINE"/>
... View more
02-21-2012
09:32 AM
|
0
|
0
|
235
|
POST
|
Hi. I'm trying to use the Select Parcels sample with my data. I'm just getting errors with the icons: such as "unable to resolve 'assets/i_draw_freeline.png' for transcoding." I couldn't find the location of these icons on the web. What can I do? Thanks. EDIT: Actually it is the "Simplify Geometries" sample found here. <mx:ToggleButtonBar id="tbb" itemClick="tbb_itemClickHandler(event)" labelField="null" selectedIndex="-1" toggleOnClick="true"> <fx:Object icon="@Embed(source='assets/i_draw_line.png')" label="POLYLINE"/> <fx:Object icon="@Embed(source='assets/i_draw_freeline.png')" label="FREEHAND_POLYLINE"/> <fx:Object icon="@Embed(source='assets/i_draw_poly.png')" label="POLYGON"/> <fx:Object icon="@Embed(source='assets/i_draw_freepoly.png')" label="FREEHAND_POLYGON"/> <fx:Object icon="@Embed(source='assets/i_draw_rect.png')" label="EXTENT"/> <fx:Object icon="@Embed(source='assets/i_draw_circle.png')" label="CIRCLE"/> <fx:Object icon="@Embed(source='assets/i_draw_ellipse.png')" label="ELLIPSE"/> </mx:ToggleButtonBar>
... View more
02-17-2012
01:02 PM
|
0
|
3
|
578
|
POST
|
Huh. Actually the way you put it (below) does work even though it has snapshot mode in it: <esri:FeatureLayer mode="snapshot"
id="fLayer"
graphicAdd="onGraphicAdd(event)"
outFields="[Address,own_name,own_addr]"
symbol="{normalSymbol}"
url="http://gis.chcity.org/CHwebMaps/rest/services/CityData/Parcels_SD/MapServer/0" /> This is what I have, which works for me, UNLESS i add mode="snapshot" to it. <esri:FeatureLayer id="fLayer"
definitionExpression="Acreage>=0"
fault="fLayer_faultHandler(event)"
graphicAdd="fLayer_graphicAddHandler(event)"
outFields="[Address,own_name,own_addr]"
symbol="{countySymbol}"
url="http://gis.chcity.org/CHwebMaps/rest/services/CityData/Parcels_SD/MapServer/0"/> I don't know why that is. ?
... View more
02-17-2012
12:30 PM
|
0
|
0
|
414
|
POST
|
Thanks. You are right about the definitionExpression being wrong because it was made for the counties layer. However, I had problems even when I removed the definitionExpression completely. I found out that the mode="snapshot" setting on my feature layer was causing problems. When I remove that and either fix or remove the definitionExpression, it works. Thank you!
... View more
02-17-2012
12:23 PM
|
0
|
0
|
414
|
POST
|
I am trying to replace the "attribute inspector outside of the map" flex sample with some local data. The parcels layer I want to add does not appear on the map. It works fine as a dynamic layer in another map I have. Perhaps I am not understanding how to create a feature layer based on a dynamic web service. This is possible, right? Here is what I've tried, just the map section of it: <esri:Map id="myMap" mapClick="map_mapClickHandler(event)" openHandCursorVisible="false" wrapAround180="true"> <esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer"/> <esri:ArcGISDynamicMapServiceLayer load="{myMap.extent=useforextentLayer.fullExtent}" id="useforextentLayer" url="http://gis.chcity.org/CHwebMaps/rest/services/CityData/CityBoundary_SD/MapServer" /> <esri:FeatureLayer id="fLayer" definitionExpression="STATE_NAME='North Carolina'" fault="fLayer_faultHandler(event)" graphicAdd="fLayer_graphicAddHandler(event)" mode="snapshot" outFields="[Address,own_name,own_addr]" symbol="{countySymbol}" url="http://gis.chcity.org/CHwebMaps/rest/services/CityData/Parcels_SD/MapServer/0"/> <esri:GraphicsLayer id="highlightGraphicsLayer"/> </esri:Map> I am not sure what the definition expression does. Also, does outFields require the field name or field alias? I may just be not understanding how to make a feature layer. I didn't find this page particularly helpful. It has samples but does not give any step-by-step direction on how to correctly create a feature layer. Any help appreciated. Thanks.
... View more
02-16-2012
04:05 PM
|
0
|
7
|
772
|
POST
|
Though FlashDevelop support has tried to help me, nothing has been successful. I got the free trial of Adobe Flash Builder and got the map up very quickly. I would just discourage any Flex beginners from using FlashDevelop. Use Adobe instead; it would have saved me a very long set of hours.
... View more
02-16-2012
11:32 AM
|
0
|
0
|
178
|
POST
|
Thanks for checking on this problem. Unfortunately that did not work for me. Do I need to type just lib or should I type lib/agslib-2.5-2011-11-30.swc ? I tried both of those but I had no luck.
... View more
02-09-2012
03:26 PM
|
0
|
0
|
178
|
POST
|
Thank you once more. You were exactly right. To run two functions on a click, all I had to do was add executeQueryTask as a second function to run in the onClick section (then include the code for that function later on, of course). Earlier I had tried adding a second set of onClick instructions. I also tried to call the second function somewhere within the code for the first one. Neither worked for me. Correct Code: dojo.connect(map, "onClick", function(evt) {
identifyLocation(evt.mapPoint, operationalLayers); //1st function
executeQueryTask(evt); //2nd function
} Also, the things that need to be initialized for highlighting parcels just needed to be added to the init() or initMap() function. Thank you!
... View more
02-07-2012
12:56 PM
|
0
|
0
|
536
|
POST
|
Hello again. I'm now trying to add the ability to highlight a clicked parcel to an existing javascript template (the chrome identify template). My two main difficulties: 1. Handling what functions happen on a click of the map. The template calls an identify location function when the map is clicked. The code I want to add calls the executeQueryTask function when the map is clicked. I have tried various things, but so far the identify functionality keeps working but showing selected parcels does not. How do I go about making sure BOTH things happen on a click of the map? Both use evt.mapPoint so it seems like it might just require small changes. 2. When using the template, I get mixed up about what javascript I should add in the layout.js file and what should be added to index.html. For example, do I initialize the event listener, query task, query filter, and symbol properties in the init function of index.html, or in the initMap function of layout.js? I have attached index.html and layout.js without any selecting-parcel code, because none of that quite worked for me. Index.html includes some javascript for a search bar I added. Layout.js has various things removed so the file would attach to this message. Here is the map I am testing with the chrome identify template. Any help is appreciated. Thank you.
... View more
02-03-2012
12:56 PM
|
0
|
0
|
536
|
POST
|
Wow, thanks! I am very pleased. I thought I didn't have to deal with outFields at all because I didn't want info windows. That's also interesting about changing the last bit of the URL...especially because if I add the /0 at the place where I create and add my dynamic map service layer, my parcels layer does not load. So right now I only have the /0 in the queryTask as you suggested, and that works fine. I'm going to try something a bit more complicated so I may find myself with more questions - thank you for getting me started.
... View more
02-03-2012
10:37 AM
|
0
|
0
|
536
|
POST
|
Hello, I have tried to follow the example very carefully, but I've had no luck. Is there a kind soul who could please look at my attempt? At this point I have no idea why it doesn't work. My only thought is that the click might be focused more on navigating around the map rather than instigating the selection of a parcel. Go to http://gis.chcity.org/test/parcel_highlight.html and view the source code for the page. I tried to do all the steps necessary in the init function, the executeQueryTask function, and the showResults function. Thank you!
... View more
02-02-2012
04:07 PM
|
0
|
0
|
536
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|