POST
|
Playing around with the CSS of the geocoder I came to a solution that might work for you, see Titelpane sizes to geocoder results - JSFiddle Key is to set: .simpleGeocoder .esriGeocoderResults {
position: relative;
}
... View more
12-10-2014
09:56 AM
|
2
|
0
|
704
|
POST
|
One approach would be to check which graphics satisfy the current time extent in each map.time-extent-change event and then extract the 'newest' graphic. If you then store a reference to this graphic and compare it each time this event fires you can figure out if the 'newest' graphic changed.
... View more
12-10-2014
09:07 AM
|
1
|
2
|
440
|
POST
|
The query you send doesn't return any results because the 'where' clause is wrong. You send: (OWNERNME1) = upper('Katz') OR (OWNERNME1) LIKE upper('Katz%') OR (OWNERNME1) LIKE upper('%Katz%') it should be: upper(OWNERNME1) LIKE '%KATZ%'
... View more
12-09-2014
10:36 AM
|
0
|
1
|
295
|
POST
|
arrayUtils.filter returns a subset of an array, so this line in your code: var selectedObjectf = arrayUtils.filter(map.graphics.graphics, function(graphic) {
return ((graphic.attributes) && graphic.attributes.PARCELID === clickedObjectf);
}); returns an array with all graphics in map.graphics.graphics where graphic.attributes.PARCELID === clickedObjectf . Assuming that PARCELID is unique you'll end up with an array with only one graphic, so you need to grab the first graphic from that array. You can also use arrayUtils.some like this: function onRowClickHandler2(evt) {
var clickedObjectf = evt.grid.getItem(evt.rowIndex).OBJECTID;
var selectedObjectf;
if (arrayUtils.some(map.graphics.graphics, function(graphic) {
if (graphic.attributes && graphic.attributes.PARCELID === clickedObjectf) {
selectedObjectf = graphic;
return true;
}
})) {
var distance = 50;
if (selectedObjectf.geometry.declaredClass == 'esri.geometry.Point') {
var PointExtent = new esri.geometry.Extent({
"xmin": selectedObjectf.geometry.x - distance,
"ymin": selectedObjectf.geometry.y - distance,
"xmax": selectedObjectf.geometry.x + distance,
"ymax": selectedObjectf.geometry.y + distance,
"spatialReference": {
"wkid": 102100
}
});
map.setExtent(PointExtent);
} else if (selectedObjectf.geometry.declaredClass == 'esri.geometry.Polygon') {
var selectedParcel = selectedObjectf.geometry.getExtent();
map.setExtent(selectedParcel.expand(3));
} else if (selectedObjectf.geometry.declaredClass == 'esri.geometry.Polyline') {
var selectedStreetl = selectedObjectf.geometry.getExtent();
map.setExtent(selectedStreetl.expand(3));
}
}
}
... View more
12-09-2014
08:44 AM
|
0
|
1
|
755
|
POST
|
Change line 86 ( on(dojo.byId("AddDTP"), "click", function mapClickHandler(evt) { ) to: map.on("click, mapClickHandler);
function mapClickHandler(evt) { ...
... View more
12-08-2014
03:59 PM
|
0
|
4
|
554
|
POST
|
1. When you generate a token you also know when it will expire. Can't you store the time the token will expire and request a new one when it's about to expire? 2. Each time you request a token a new unique one will be generated. Each token has it's own expiration time, so yes you can have multiple tokens.
... View more
12-08-2014
01:19 PM
|
0
|
0
|
233
|
POST
|
Make sure you send a POST request, I just tried with your provided json and it works fine:
... View more
12-08-2014
01:12 PM
|
2
|
2
|
1109
|
POST
|
By assigning an infoTemplate to layer_0000 you automatically set up a 'click' handler on the map, you don't have to do anything else to get 'default' popup behavior. Seems to me that you want to show a custom popup, not one driven by the attributes of clicked feature. So instead I would suggest to remove the infotemplate from layer_0000 and instead on line 51 do: map.infoWindow.setContent(content);
map.infoWindow.show(evt.screenPoint, map.getInfoWindowAnchor(evt.screenPoint));
... View more
12-08-2014
12:58 PM
|
0
|
0
|
246
|
POST
|
Almost, the selectedObjectf object is an array which probably contains 1 element (provided the feature you're looking for was found). So after line 5 you need to add something like: selectedObjectf = selectedObjectf[0];
if (selectedObjectf) {
...do other stuff
... View more
12-08-2014
12:48 PM
|
0
|
3
|
755
|
POST
|
Your data is not in a webmercator projection so you can't use webMercatorUtils. Instead you need to use the Geometry service to do the projection: geometryservice-amd | API Reference | ArcGIS API for JavaScript See working sample here http://jsfiddle.net/Heiko/01examzx/
... View more
12-08-2014
12:28 PM
|
1
|
0
|
667
|
POST
|
because you didn't assign anything to selectedObjectf
... View more
12-08-2014
12:19 PM
|
0
|
5
|
755
|
POST
|
You need to add &f=json (or &f=pjson ) to the request
... View more
12-05-2014
03:44 PM
|
0
|
0
|
797
|
Title | Kudos | Posted |
---|---|---|
1 | 08-06-2018 12:55 PM | |
1 | 07-06-2017 03:01 PM | |
1 | 12-10-2014 09:07 AM | |
1 | 12-19-2014 10:06 AM | |
1 | 12-10-2014 02:58 PM |
Online Status |
Offline
|
Date Last Visited |
01-09-2024
12:35 AM
|