esri-maps

How to get get name of hospital or street in particular area when draw polyline through Javascript ArcGIS Api?

痞子三分冷 提交于 2021-02-11 14:24:46
问题 Actually I am using ArcGIS API for JavaScript 4.7. I want to get name of hospital or street in particular area when draw polyline . How to achieve that ? Suppose I draw a area through polyline. In this area there are some hospital or street ..etc . Now I need the name of hospitals or street within that area. the result look like :- [street1,street2, ...] , [hospital1,hospital2, ...] Update error :- esri.layers.graphics.QueryEngine", message: "Unsupported query" details: undefined} this error

clear map zoom and geometries of feature layer

ε祈祈猫儿з 提交于 2020-01-24 19:55:08
问题 i have selected feature(feature layer) from combobox and it zoom to the feature . now i want to clear combobox slection and map . and zoom map to its default zoom. //combobox selection clear dijit.byId("A1").reset(); dijit.byId("A2").reset(); dijit.byId("A3").reset(); dijit.byId("A4").reset(); dijit.byId("A5").reset(); //layer selection clear document.getElementById('A1_layer').clearSelection(); document.getElementById('A2_layerC').clearSelection(); document.getElementById('A3_layerC')

Single layer visible in LayerList widget (ArcGIS JavaScript)

走远了吗. 提交于 2019-12-12 02:43:42
问题 Is it possible to have a single layer visible on the map in this ESRI tutorial LayerList widget ? Each time you click on a layer, the previous one should deactivate. So you always have only one layer on the map. Michelle 回答1: I managed to write a code for you . Check it and let me know : <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"> <title>Layer List Dijit<

Error “Cannot use 'new' with an expression whose type lacks a call or construct signature.” when importing Esri types

天大地大妈咪最大 提交于 2019-12-11 00:11:57
问题 I feel like there is something really simple that I am missing here. I've got a class that I am building out that uses Esri ArcGIS API, but when I import the type definitions from the arcgis-js-api 's d.ts file, I get the typescript error "Cannot use 'new' with an expression whose type lacks a call or construct signature." Ex: import * as IMap from 'esri/Map'; export class Foo { bar: (Map: IMap) { const map = new Map(); // <-- error here } } relevant snippets from the d.ts file: declare