POST
|
For some situations my team has created .net services that can feed JsonRest stores. If you're running SDE and can get at your database directly you can get great performance this way. dojo/store/JsonRest — The Dojo Toolkit - Reference Guide I've also created a custom FeatureLayerStore that wraps dojo's api/store around a feature layer. Our current database doesn't support pagination and the performance isn't great this way. When we upgrade our DB I expect to see suitable performance this way. But, it looks like the pre-load method is working for you fine. Remember to set returnGeometry to false on your query, and an index on your streetname field won't hurt.
... View more
07-08-2015
06:54 AM
|
1
|
0
|
658
|
POST
|
Have a look at dojo/domReady! — The Dojo Toolkit - Reference Guide
... View more
07-08-2015
04:54 AM
|
0
|
0
|
511
|
POST
|
Your search dijit has a 'search-results' event that you can use to handle the marker yourself. You might need to set autoNavigate to false.
... View more
07-07-2015
05:29 AM
|
1
|
0
|
712
|
POST
|
setExclusionAreas is an array, so you can calculate 4 extents to exclude everything but your target area.
... View more
07-07-2015
05:20 AM
|
2
|
0
|
431
|
POST
|
New to 3.13, try the geometryEngine: esri/geometry/geometryEngine | API Reference | ArcGIS API for JavaScript
... View more
07-07-2015
05:14 AM
|
1
|
0
|
436
|
POST
|
Have a look at this sample, Class breaks renderer | ArcGIS API for JavaScript Use two classes: var renderer = new ClassBreaksRenderer(symbol, "POP07_SQMI"); renderer.addBreak(0, 10000, new SimpleFillSymbol().setColor(new Color([56, 168, 0, 0.5]))); renderer.addBreak(10000, 20000, new SimpleFillSymbol().setColor(new Color([139, 209, 0, 0.5])));
... View more
07-07-2015
05:08 AM
|
1
|
0
|
264
|
POST
|
correct as a workoutaround...still a bug in the API from what I can tell.
... View more
04-23-2015
11:34 AM
|
1
|
1
|
546
|
POST
|
Quick example, click on the bold and nothing happens. Click on the normal text and select-result fires.
... View more
04-22-2015
11:56 AM
|
2
|
0
|
546
|
POST
|
Have a look at this sample for the new Search dijit from the 3.13 JavaScript api ArcGIS API for JavaScript | Basic Search When you get a list of suggestions you can't click on the <strong>bold/strong</strong> text. I assume this is a bug on ESRI's part. Has anyone dealt with this?
... View more
04-22-2015
11:53 AM
|
1
|
4
|
3702
|
POST
|
I would add dojo/touch and update your coordinates on touch.press. That covers mouse-down when a mouse is present and touchstart when a touchscreen is in use. dojo/touch — The Dojo Toolkit - Reference Guide
... View more
02-02-2015
12:52 PM
|
1
|
0
|
798
|
POST
|
I'm having trouble in IE 11 with my map jumping to different extents when I'm clicking through measuring a line or polygon. I'd post an example but I'm curious to hear if this is something others have seen.
... View more
02-02-2015
12:31 PM
|
0
|
0
|
2741
|
POST
|
Depending on what you want to do there are a number of avenues. If you just want highlight effects you can look into adding some :hover rules to various components inside AttributeInspectors. .esriAttributeInspector input:hover{
background-color: yellow;
} If to do something on field changes then you just need the attribute-change event: AttributeInspector | API Reference | ArcGIS API for JavaScript If you want do something else you might need to dig a bit. I haven't tried this but it's an approach I would consider: require(["dojo/_base/array", "dojo/on", "dijit/registry", "esri/dijit/AttributeInspector"],
function(arrayUtil, on, registry, AttributeInspector){
// ...
var attInspector = new AttributeInspector({
layerInfos: layerInfos
}, domConstruct.create("div"));
// get all registered dijits in the attributeInspector
var formWidgets = registry.findWidgets(attInspector.domNode);
// For each widget
arrayUtil.forEach(formWidgets , function(w){
w.on("focus", someFunction);
});
});
... View more
02-02-2015
12:23 PM
|
1
|
0
|
470
|
POST
|
Have a look at IdentifyTask | API Reference | ArcGIS API for JavaScript
... View more
02-02-2015
11:33 AM
|
1
|
0
|
796
|
POST
|
Graphics often have their attributes embedded. If there's a template defined on the graphic then a click can trigger a popup infoWindow to display those attributes. A graphics layer has a number of events (click, mouse-move) that can be used to highlight the relevant graphics in a layer as well. Depending on what you want to do those might help. Sticking to click-popup is the easiest path.
... View more
02-02-2015
11:22 AM
|
1
|
0
|
366
|
POST
|
Now you said DataGrid but I may suggest dgrid. It comes packaged with ESRI's jsapi and might be what you meant anyway. Anyway, dgrid has an editor plugin that looks like it will fit your needs: dgrid/editor.md at v0.3.15 · SitePen/dgrid · GitHub By 'CIP does not exist in store' I would suggest that you create that field and leave it empty (so that the column exists but the field is empty/null in each record).
... View more
02-02-2015
11:13 AM
|
1
|
0
|
270
|
Title | Kudos | Posted |
---|---|---|
1 | 02-02-2015 11:22 AM | |
1 | 02-02-2015 11:33 AM | |
1 | 12-29-2014 04:59 AM | |
1 | 07-07-2015 05:08 AM | |
1 | 01-15-2015 10:44 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|