|
POST
|
Hi Jim, If I go to the Flex API page for example, and click on the Code Gallery tab, no filter options show up. http://help.arcgis.com/en/webapi/flex/index.html Code Gallery tab goes here http://help.arcgis.com/en/webapi/flex/gallery.html If I go to the Code Gallery for the JavaScript API, I do get filters http://help.arcgis.com/EN/webapi/javascript/arcgis/help/gallery.html I haven't gone through all Code Gallery pages, but some have filters and some don't(Silverlight API). It's odd when navigating.
... View more
10-06-2010
10:02 AM
|
0
|
0
|
1628
|
|
POST
|
Thanks. After some head scratching and looking over API docs, I figured it out.
// will find if the x/y point for an address is inside of a graphic on my GraphicsLayer
var onMapExtentChangeHandle = dojo.connect(map, "onExtentChange", function() {
dojo.disconnect(onMapExtentChangeHandle);
console.log("address result zoomed");
var point = geometry.toScreenGeometry(map.extent, map.width, map.height, pointMeters);
for (var i in gLayer.graphics) {
var g = gLayer.graphics;
if (g.geometry.contains(pointMeters)) {
var info = map.infoWindow;
info.setTitle(g.getTitle());
info.setContent(g.getContent());
info.show(point, map.getInfoWindowAnchor(point));
}
}
});
... View more
10-05-2010
11:08 AM
|
0
|
0
|
1208
|
|
POST
|
Thanks. That eliminated the error, but the infoWindow is still blank. It's not a deal breaker. I think I can work around it, but was hoping it would be simple. I'll keep cracking at it.
... View more
10-04-2010
10:19 AM
|
0
|
0
|
1208
|
|
POST
|
I've been spending some time with the JavaScript API, but I'm a little stumped on this one. Most of the samples I have seen simply use the map.graphics GraphicsLayer to hold graphics. In my case, I have added a new GraphicsLayer so that I can hold persistent graphics on the map. I use map.graphics to hold Geocode Results or temporary graphics. What I am trying to do is display the infoWindow for the GraphicsLayer I added to the map, but it's not working as I expected. On page load, after populating my GraphicsLayer, I add it to the map with a defined InfoTemplate. gLayer = new esri.layers.GraphicsLayer();
gLayer.id = "features";
var graphic = new esri.Graphic(new esri.geometry.Polygon(geometry), symbol, attributes, infoTemplate);
gLayer.add(graphic);
map.addLayer(gLayer); During it's use, someone can search for an address and I add that result to map.graphics. Then try to display the infoWindow after it has zoomed in. var pointMeters = esri.geometry.geographicToWebMercator(geocodeResults[0].location);
map.setExtent(esri.geometry.geographicToWebMercator(geocodeResults[0].bestView));
var onMapZoomHandle = dojo.connect(map, "onZoomEnd", function() {
dojo.disconnect(onMapZoomHandle);
console.log("add result zoomed");
var point = esri.geometry.toScreenPoint(map.extent, map.width, map.height, pointMeters);
map.infoWindow.show(point, map.getInfoWindowAnchor(point)); // throws error
//map.getLayer("features").infoWindow.show(point, map.getInfoWindowAnchor(point));
// tried having layer show directly, long shot, but no go
}); This throws an error and a blank infoWindow exception in animation handler for: onEnd
TypeError: pt is null
[Break on this error] if(!dojo._hasResource["dijit._base.man...h","tr","xx","zh","zh-cn","zh-tw"]);\r\n
arcgis?v=2.1 (line 48 I can click anywhere else on the added GraphicsLayer and get the predefined InfoWindow just fine. Does that InfoWindow display on the map.click() or the graphicsLayer.click()? If so, is there a way I can throw that event after the zoom to mimic the behavior? Thanks.
... View more
10-01-2010
06:25 AM
|
0
|
4
|
4235
|
|
POST
|
One solution would be to use the REST export to grab png's of the map service and stack them in Flex to send to print. This wouldn't grab any hand drawn graphics you have added though. http://help.arcgis.com/EN/arcgisserver/10.0/apis/rest/export.html I think high-quality prints would require server side ArcObjects to produce the image.
... View more
09-28-2010
02:13 PM
|
0
|
0
|
2214
|
|
POST
|
I updated the download page with info on how to compile in to your own project. You can also look here and it briefly tells you how to add your own widgets to a project. http://help.arcgis.com/en/webapps/flexviewer/help/developers/widget_framework.htm Thanks.
... View more
09-22-2010
02:22 PM
|
0
|
0
|
1194
|
|
POST
|
As in only what's visible? At that scale level as well? If I don't have time this week, I can implement that this weekend. Thanks for feedback.
... View more
09-22-2010
09:12 AM
|
0
|
0
|
1194
|
|
POST
|
Excited to see touch events. Glad to see you guys are looking forward for Mobile dev. And I thought I was going to have a boring day.
... View more
09-21-2010
09:22 AM
|
0
|
0
|
450
|
|
POST
|
I added an Identify Widget to the Code Gallery http://www.arcgis.com/home/item.html?id=952242d872654661984c7d7e183d2183 The actual Identify tool is just a component added to the widget, so there are no Flexviewer dependencies, so it should port over fairly easily when Flexviewer 2 gets updated. It may not work exactly how most people would use it, but it works great for our particular workflow here in the office.
... View more
09-21-2010
09:18 AM
|
0
|
0
|
1194
|
|
POST
|
That's the source code for the FlexViewer that can be customized to your liking. However if you'd like the API used to build the FlexViewer you'll want to get the API from here http://resources.arcgis.com/content/arcgis-flex-api-how-to-download That will alllow you to build an application from scratch.
... View more
09-17-2010
07:58 AM
|
0
|
0
|
1119
|
|
POST
|
Are you using FlashBuilder 4 to import the project? If you are using FlashBuilder 3, I think you'll need to unzip the file and import the folder. There is a readme.txt in the src zip file that tells you how to import the project into FB4. And you used this link for the source, correct? http://www.arcgis.com/home/item.html?id=3f6a0bfee48949a88df50bf7686ec72a
... View more
09-17-2010
05:50 AM
|
0
|
0
|
1119
|
|
POST
|
If you're already hiding the logo and trying to add yours, but still get that error, sometimes this unable to resolve 'assets/images/NEW_ITRE_LOGO1.png' for transcoding Can be fixed by adding a "/" at the beginning. unable to resolve '/assets/images/NEW_ITRE_LOGO1.png' for transcoding It's happened to me before with Embeds.
... View more
09-15-2010
02:01 PM
|
0
|
0
|
1373
|
|
POST
|
So after your queries are done, you'd have something like this. DataGrid1 STOPID 1 2 3 DataGrid2 STOPID NAME 1..........Name1 1..........Name2 2..........Name3 2..........Name4 3..........Name5 3..........Name6 Then you click on STOPID 1 and the STOPID == 1 in DataGrid2 would get selected right? Try something like this. http://gist.github.com/581418#file_flex_data_grid_query Set allowMultipleSelection="true" on DataGrid2 and then find the matches in Datagrid2 and make an array of their indices. Then you can set that array to DataGrid2.selectedIndices.
... View more
09-15-2010
12:29 PM
|
0
|
0
|
907
|
|
POST
|
Looking at the docs http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/FeatureLayer.html The returned event is QUERY_FEATURES_COMPLETE. com.esri.ags.events.FeatureLayerEvent.QUERY_FEATURES_COMPLETE http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/FeatureLayer.html#event:queryFeaturesComplete I have not used queryFeatures in my apps yet, so I'm not sure if results will be displayed as graphics on screen, but the QUERY_FEATURES_COMPLETE event returns a FeatureSet. http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/events/FeatureLayerEvent.html
... View more
09-15-2010
11:53 AM
|
0
|
0
|
1257
|
|
POST
|
A FeatureLayer is a subclass of a GraphcisLayer, so you can use GraphicUtil.getGraphicsExtent to do it, after you have done a selection on the FeatureLayer. var ac:ArrayCollection = featureLayer.graphicProvider as ArrayCollection;
map.extent = GraphicUtil.getGraphicsExtent(ac.toArray());
... View more
09-15-2010
10:44 AM
|
0
|
0
|
1257
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | a week ago | |
| 2 | 2 weeks ago | |
| 1 | 02-27-2026 06:31 AM | |
| 1 | 01-13-2026 02:15 PM | |
| 1 | 12-31-2025 09:05 AM |
| Online Status |
Offline
|
| Date Last Visited |
2 hours ago
|