|
POST
|
I don't have much experience with the attribute inspector but I was able to modify Attribute Inspector sample and get the desired behavior. Both of these produced a text area for me: {'fieldName': 'station_id','tooltip': 'The station id.', 'label':'Station:','isEditable':false, 'stringFieldOption': 'textarea'}
{'fieldName': 'station_id','tooltip': 'The station id.', 'label':'Station:','isEditable':true, 'stringFieldOption': esri.dijit.AttributeInspector.STRING_FIELD_OPTION_TEXTAREA} As for changing the width of dijit text boxes/text areas...I wish I had a better way but you should be able to do this via CSS. The tricky part is getting the right dom node. The dojo campus dijit text box page has an example that might help. Something like: var box = dijit.byId("progBox");
dojo.style(box.domNode, "width", "5em"); The problem is getting the dijit's ID since everything in the attribute inspector is built programmatically...
... View more
03-23-2011
02:42 PM
|
0
|
0
|
773
|
|
POST
|
I think this is the sample you're looking for: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/find_drilldown.html
... View more
03-23-2011
01:23 PM
|
0
|
0
|
1080
|
|
POST
|
There are a few things to fix but the main one is how you're assigning callback functions for your query tasks. Since you're re-using global variables for your query tasks, each time showResults() is called, a new callback is attached to your query task. To avoid this, I'd recommend passing in a function for the callback argument of queryTask.execute() instead of using dojo.connect to add a new callback each time showResults() runs. Take a look at the attached code to see how this is done. The other big change I made was to use a new global to keep track of the current map click (variable named "currentClick"). I also took out your bClick variable as it seemed unnecessary (but maybe I'm missing something).
... View more
03-23-2011
01:11 PM
|
0
|
0
|
788
|
|
POST
|
Opera isn't listed here as a supported browser: http://resources.arcgis.com/content/webapis/2.0/system-requirements And, I don't know if it still applies, but opera wasn't listed a supported browser for all of dijit a while back.
... View more
02-28-2011
01:52 PM
|
0
|
0
|
581
|
|
POST
|
A dynamic map service != "static map made and uploaded". How about clustering? You still send all your data to the client but display far fewer graphics.
... View more
02-21-2011
09:49 AM
|
0
|
0
|
1024
|
|
POST
|
Probably best to ask this on the flex forum: http://forums.arcgis.com/forums/18-ArcGIS-API-for-Flex
... View more
02-21-2011
09:46 AM
|
0
|
0
|
578
|
|
POST
|
Really? Works for me...but go to the documentation: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm Click "esri Namespace Methods" then you want to look for esri.graphicsExtent(graphics). It takes an array of graphics as a parameter and returns an extent which you can pass to map.setExtent().
... View more
02-18-2011
03:09 PM
|
0
|
0
|
698
|
|
POST
|
http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/namespace_esri.htm#esri.graphicsExtent
... View more
02-18-2011
01:49 PM
|
0
|
0
|
698
|
|
POST
|
Yes, it works. I've used a time extent returned by getCurrentTimeExtent() from a time slider to set the timeExtent property on an identify parameters object. How are you creating your time extent?
... View more
02-18-2011
08:25 AM
|
0
|
0
|
827
|
|
POST
|
Are you using something like this to show your info window: map.infoWindow.show(evt.screenPoint, map.getInfoWindowAnchor(evt.screenPoint));
... View more
02-18-2011
08:04 AM
|
0
|
0
|
730
|
|
POST
|
For general info on dynamic map services, start here: http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#/What_is_a_map_service/00930000004q000000/ Here's the doc that explains usage with the JS API: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/arcgisdynamicmapservicelayer.htm
... View more
02-18-2011
08:01 AM
|
0
|
0
|
1024
|
|
POST
|
I have not done API for google map for year or two. So I might be wrong. API for google map is basically an extension of Google Map API. If you look at posted samples, ArcGIS layer is added on the Google map, not the opposite like the ArcGIS javascript API where Bing map is added to ESRI's map as a layer. However, using the Google map extension you can still do most of things that Javascript API can do. Plus somethings that Javascript API can not do like traffic, 3D etc (you can do streetview on any of the ESRI APIs through). OP is not using the extension for google maps but the code posted here: http://www.arcgis.com/home/item.html?id=a84d64b0d1404366a02da714ca59d61f
... View more
02-18-2011
05:47 AM
|
0
|
0
|
2927
|
|
POST
|
10k graphics is about 10 times as many as you should ever put on a web map, IMO. Even in browsers with high performance JS/rendering capabilities, I wouldn't expect a map with 10k graphics dropped on it to perform well. I think you should look into either clustering your data or using a dynamic map service.
... View more
02-17-2011
08:08 PM
|
0
|
0
|
1024
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-23-2012 07:54 AM | |
| 1 | 05-28-2010 08:31 AM | |
| 1 | 11-12-2012 08:12 AM | |
| 3 | 02-23-2012 10:57 AM | |
| 1 | 06-27-2011 08:51 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|