|
POST
|
Thanks for your response. Yes, your suggestion does work. html <body class="override nihilo"> css .override .templatePicker { margin-top: 15px; border:none; } I believe the reason it works is not because class override is assigned before class nihilo, in my case, but because the css selector ".override .templatePicker" has higher specificity than simply ".templatePicker". The ".templatePicker" class selector is not in the dojo nihilo or tundra, etc. themes but rather in a separate css pulled from ESRI CDN. http://serverapi.arcgisonline.com/jsapi/arcgis/2.5/js/esri/dijit/editing/css/TemplatePicker.css Therefore, this works too -> <body class="nihilo override"> Thx. You are absolutely correct. Sorry off day.
... View more
12-15-2011
06:49 AM
|
0
|
0
|
839
|
|
POST
|
Yes they are in two projections. I really didn't think about it I just used a cached service I already had. I will make the changes and see what happens. Thanks for the help, James Well it will at least be worth trying to rule out as an issue
... View more
12-15-2011
06:26 AM
|
0
|
0
|
3085
|
|
POST
|
I had it turned off. I was trying to get rid of the Objectid_1. It should work now. Sorry about that. I ask for help then turn off the service. OK i think i figured out your problem According to your service Extent: XMin: 5092236.84471448 YMin: 3744333.20859535 XMax: 5398097.78318819 YMax: 4012334.36813001 Spatial Reference: 3089 yet clicking on your map yields adds [{"geometry":{"x":1477486.2739920334,"y":284517.4554125852,"spatialReference":{"wkid":2246}},"attributes":{"LastUpdate":null,"OBJECTID":null,"COUNTY":null,"Type":"Point1","Image_":null,"WebLink":null,"Comment":null,"COM":null,"EditorName":null,"requestdate":1323965159000}}] Different Spatial reference, invalid xmin,etc.. is there a reason you are in two different coord systems?
... View more
12-15-2011
06:13 AM
|
0
|
0
|
3085
|
|
POST
|
Can you post the code for your app? A simplified repro case would be preferred. What kind of errors are you guys getting in firebug/fiddler? I am not seeing any I use both the Basemap gallery Widget and the custom Basemap Control widget, Bing maps display, but if i "clickwheel" or use the zoom slider to zoom, it looks like Basemaps never update. The same layer chosen without the basemap gallery works fine. The same layer chosen from BAsemap Control sample works fine. Looks like a bug in the Basemap gallery that is not working with the new zoom style .
... View more
12-15-2011
05:18 AM
|
0
|
0
|
1103
|
|
POST
|
It doesn't look like you are actually using a proxy for the POST. That's probably not it but just an fyi. I wonder if your OBJECTID_1 field name is causing some confusion. It might be looking at your other field named OBJECTID which is null. That might cause an incorrect parameter error. Before you get too frustrating with editing, your service doesnt work at all! you cant even query it http://agis21.frankfort.ky.gov/ArcGIS2/rest/services/WebEdits/FeatureServer/0/query?objectIds=1&where=&time=&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&outFields=*&returnGeometry=true&outSR=&returnCountOnly=false&returnIdsOnly=false&f=html returns "Unable to perform query" right from the rest service, no web app involved.
... View more
12-15-2011
05:14 AM
|
0
|
0
|
6080
|
|
POST
|
just use expand if you want to be about 25% more out, do var taxLotExtent = selectedTaxLot.geometry.getExtent(); taxLotExtent = taxLotExtent.expand(1.25); map.setExtent(taxLotExtent, true); not the boolean true on set extent, this will force your map to go out a level if even a bit of the extent is clipped.
... View more
12-14-2011
11:44 AM
|
0
|
0
|
2150
|
|
POST
|
Version 2.6 of the ArcGIS API for JavaScript released today. View the blog post for details: http://esriurl.com/3428 For those who need the local download it will be available in a few days. I'll post back on this thread once it is ready. Links to print documentation are broken Network Error (dns_unresolved_hostname) Your requested host "helpdev.arcgis.com" could not be resolved by DNS. For assistance, contact your network support team.
... View more
12-14-2011
07:40 AM
|
0
|
0
|
875
|
|
POST
|
I notice the ESRI dijits I'm using have their own styles in css that are pulled from the CDN (I'm using the CDN-hosted api, v2.5). At times, I'd like to override some of those styles with my own local styles. Since the esri css are loaded last, they always trump any local styles I have set. The only workaround I found is to use !important. For example, for the editor template picker: .templatePicker { margin-top: 10px; border:none !important; /*override esri legend.css*/ } to override this css... http://serverapi.arcgisonline.com/jsapi/arcgis/2.5/js/esri/dijit/editing/css/TemplatePicker.css I don't think this is the best approach but don't know of another way. If you add a class to your <BODY class="override tundra"> and then add a css entry as .override .templatePicker { margin-top: 10px; border:none } It will pick yours first, since "override" comes before "tundra" in the list
... View more
12-14-2011
07:31 AM
|
0
|
0
|
839
|
|
POST
|
Thanks for the reply; however, I don't think that is my problem. I am just adding a point feature so the geometry is not very big. This proxy is the same as I have used on other servers so I think it is also configured correctly. Thanks for the suggestion. CAn you post some code?
... View more
12-14-2011
04:04 AM
|
0
|
0
|
6080
|
|
POST
|
I am trying to create an application similar to the ESRI citizen request sample. I am running into a problem where I am unable to apply my edits. The error code is: {"error":{"code":400,"message":"Unable to complete operation.","details":["Unable to apply edits"]}} I have: registered the feature class as versioned permissions have been given. I am able to edit without problem in ArcMap; is there something else I need to do. checked to make sure editing is enabled on the service Any help is greatly appreciated. James Edits can frequently exceed the size of a GET, and may switch to a POST if the geometries are large. Make sure you have your proxy set up if that is the case.
... View more
12-13-2011
09:52 AM
|
0
|
0
|
6080
|
|
POST
|
Re-projecting into WGS84 Web Mercator seems to have worked. Thanks! I figured I would have to re-project my layers but wanted to make sure before I went through all the work. You dont have to reproject anything!!!!! Just change your data frame properties. The data can stay in its native projection.
... View more
12-13-2011
09:48 AM
|
0
|
0
|
1364
|
|
POST
|
Hello, I am working on a map that displays data in a dojo grid and when the user selects the row, it zooms to the feature on the map. There are points and polygons and the polygons are zoomed to correctly, however, the points are highlighting on the map, but not zooming in at all. Any help would be greatly appreciated!!:o } else if (searchType == "PointName") {
var clickedTaxLotId = grid4.getItem(evt.rowIndex).POINT_NAME;
var selectedTaxLot;
dojo.forEach(map.graphics.graphics,function(graphic){
if((graphic.attributes) && graphic.attributes.POINT_NAME === clickedTaxLotId){
selectedTaxLot = graphic;
//added this part to build infotemplate
map.infoWindow.setTitle(graphic.getTitle());
map.infoWindow.setContent(graphic.getContent());
//
return;
}
});
if ( selectedTaxLot.geometry.declaredClass == 'esri.geometry.Point' ) {
//alert("Point");
map.centerAt(selectedTaxLot.geometry);
var sp = map.toScreen(selectedTaxLot.geometry);
map.infoWindow.show(selectedTaxLot.geometry, map.getInfoWindowAnchor(sp));
} else {
//alert("Polygon");
var taxLotExtent = selectedTaxLot.geometry.getExtent();
var screenpoint = map.toScreen(selectedTaxLot.geometry.getExtent().getCenter());
var mappoint = map.toMap(screenpoint);
//map.centerAt(mappoint);
//added by Emily
map.centerAndZoom(selectedTaxLot.geometry,11);
map.infoWindow.show(taxLotExtent.getCenter(), map.getInfoWindowAnchor(screenpoint));
}
} That is because you are calling "centerAt" so all it does is pan. Since a point has no Extent, you need to tell it what level to go to you could try "centerAndZoom" i.e map.centerAndZoom(pt, level)
... View more
12-13-2011
08:14 AM
|
0
|
0
|
439
|
|
POST
|
I would highly recommend Web Mercator Aux Sphere (102100). It is compatible with Bing, ArcGIS Online, Google, etc.. and seems to be the universal solution.
... View more
12-13-2011
04:02 AM
|
0
|
0
|
1364
|
|
POST
|
Does this exist? I've only found notes for installing/configuring the API on IIS...which is not translating nicely for me unfortunately...being the n00b that I am to web server setup. You can just drop the folder in the webapps directory
... View more
12-12-2011
11:28 AM
|
0
|
0
|
399
|
|
POST
|
I am looking for an equivalent to arcgis desktop's select by attributes. Is there a way to complete this functionality using query or selectFeatures. Any help would be appreciated. You want a QueryTask with a Query that contains a where clause http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jsapi/query.htm#where
... View more
12-12-2011
10:49 AM
|
0
|
0
|
349
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-22-2014 08:35 AM | |
| 1 | 05-02-2012 04:56 AM | |
| 1 | 10-29-2021 07:40 AM | |
| 1 | 10-28-2021 05:26 AM | |
| 1 | 07-17-2012 08:48 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-01-2022
02:00 PM
|