POST
|
I can download statewide NY senate districts using ... https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/tigerWMS_Current/MapServer/56/query?where=STATE+%3D+36&text=&objectIds=&time=&geometry=&geometryType=esriGeometryPoint&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&outFields=*&returnGeometry=true&returnTrueCurves=false&maxAllowableOffset=&geometryPrecision=&outSR=&returnIdsOnly=false&returnCountOnly=false&orderByFields=&groupByFieldsForStatistics=&outStatistics=&returnZ=false&returnM=false&gdbVersion=&returnDistinctValues=false&resultOffset=&resultRecordCount=&queryByDistance=&returnExtentsOnly=false&datumTransformation=¶meterValues=&rangeValues=&f=geojson When I query lat/lng against the api... I get zero results. https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/tigerWMS_Current/MapServer/56/query?where=STATE+%3D+36&text=&objectIds=&time=&geometry=-73.831676%2C42.768687&geometryType=esriGeometryPoint&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&outFields=*&returnGeometry=true&returnTrueCurves=false&maxAllowableOffset=&geometryPrecision=&outSR=&returnIdsOnly=false&returnCountOnly=false&orderByFields=&groupByFieldsForStatistics=&outStatistics=&returnZ=false&returnM=false&gdbVersion=&returnDistinctValues=false&resultOffset=&resultRecordCount=&queryByDistance=&returnExtentsOnly=false&datumTransformation=¶meterValues=&rangeValues=&f=geojson But when I map the statewide dataset and map the lat/lng I can see I should have an intersect. Can someone tell me why this intersect returns no results when the point falls within zone on the map???
... View more
06-24-2019
11:22 AM
|
0
|
1
|
980
|
POST
|
Hi Robert. Thank you for the response. Good to know I was getting close. I still have not seen activeSourceIndex implemented. Can you provide an example?
... View more
09-15-2018
07:13 PM
|
0
|
1
|
1014
|
POST
|
I am looking for some example of setting the default search service to all(feature layer and esri geocoding). but I also care about the order of the results returned. I suspect this is accomplished using the activeSource parameter of the search widget. But have not been able to find an example of this implemented. I have tried implementing like this.. var searchWidget = new Search({ container: "searchDiv", view: view, allPlaceholder: "Places or Tyler Communities", activeSource: 0, sources: [{ featureLayer: { url: "https://services5.arcgis.com/6gTxIFMxZdWxCrVQ/arcgis/rest/services/...", popupTemplate: { // autocasts as new PopupTemplate() title: "{customer} is Tyler Connected Community!", overwriteActions: true } }, activeSourceIndex: 1, searchFields: ["customer", "city", "state"], displayField: "customer", exactMatch: false, outFields: ["*"], name: "Tyler Communities", placeholder: "example: city of birmingham", zoomScale: 500000 }]}); and also like this... searchWidget.activeSource = 0; But both return this error... dojo.js:340 Uncaught TypeError: [accessor] cannot assign to read-only property 'activeSource' of esri.widgets.Search.SearchViewModel Any help is greatly appreciated.
... View more
09-15-2018
01:23 PM
|
0
|
3
|
1520
|
Online Status |
Offline
|
Date Last Visited |
03-29-2023
05:06 PM
|