POST
|
The locator I'm using supports "findAddressCandidates" but the search widget uses "suggest" as the default method to the locator when retrieving search suggestions. How can I change it so it uses "findAddressCandidates"?
... View more
12-03-2018
05:54 AM
|
0
|
3
|
663
|
POST
|
I have some expand widget buttons on the top-right of my view. When opening them and closing them, the button shifts to the right so it is 80% off screen. This doesn't occur 100% of the time. This only occurs on Safari IOS, I have tested Chrome IOS and Chrome Windows device simulator and they work fine.
... View more
11-20-2018
04:29 AM
|
0
|
3
|
691
|
POST
|
My layer looks like this: Drawing Info: Renderer:Unique Value Renderer: Field 1: BLPU_CLASS Field 2: null Field 3: null Field Delimiter: , Default Symbol: N/A Default Label: null UniqueValueInfos: Value: CM03 Label: Hospital Description: Symbol: Value: CX01 Label: Police Station Description: Symbol: Value: CX02 Label: Fire Station Description: Symbol: Transparency: 0 Labeling Info: When using the feature layer like so: var layer = new FeatureLayer({ url: "https://.../arcgis/rest/services/External_Maps/All_Data_Points/MapServer/6", title: "...", visible: false }); I get this error in my console: [esri.layers.FeatureLayer] [outFields] Invalid field: BLPU_CLASS This occurs for any layer like above, with multiple symbol types on the layer. They appear in the layerlist but nothing is shown when I toggle the layer in question. Layers that only have one symbol type work fine as intended.
... View more
11-15-2018
02:33 AM
|
1
|
3
|
874
|
POST
|
I have a function that queries features that appear within a buffer around a given point on a feature layer. function queryLayer(layer, buffer, point){
var query = layer.createQuery();
query.geometry = buffer;
query.spatialRelationship = "intersects";
layer.queryFeatures(query).then(function(results){
console.log(results.features);
});
}
I know that query.orderByFields = "..." exists but I'm not sure how to go about using it. Is there a good way I can use the point variable to say "order by closest to this point"?
... View more
11-09-2018
03:08 AM
|
0
|
2
|
2615
|
BLOG
|
Bjorn Svensson Could you add tabindex="-1" to expandable widgets when they are not expanded? This would greatly improve accessibility. Many thanks.
... View more
11-08-2018
04:01 AM
|
0
|
0
|
630
|
POST
|
Only way I found to get around it is: setTimeout(function(){ locateBtn.domNode.innerHTML = "<span aria-hidden='true' class='esri-icon esri-icon-locate'></span><span class='esri-icon-font-fallback-text'>Find my location</span>"; }, 3000);
... View more
11-08-2018
03:36 AM
|
0
|
0
|
581
|
POST
|
The icon for the Locate widget does not appear in IE11 and I've replaced it like so: .esri-icon-locate:before { content: "\e949"; } But it still doesn't appear. Tried on IE11 on multiple PCs but still doesn't appear. Anyone know how to fix this?
... View more
11-08-2018
02:29 AM
|
0
|
3
|
782
|
POST
|
Managed to get it working: var geo = view.center; geo.x = x; geo.y = y; view.goTo({ geometry:geo, zoom:zoom });
... View more
11-07-2018
07:36 AM
|
3
|
4
|
8143
|
POST
|
var ex = new Extent({ center:{ x:564460.8649987298, y:139625.260181187 } }); view.goTo(ex);
... View more
11-07-2018
07:16 AM
|
1
|
0
|
8143
|
POST
|
I have an x, y, spatialReference and zoom value that I need the map to go to. My map uses a custom basemap (same as the given spatial reference) and the view uses an extent value like so: var view = new MapView({ container: "viewDiv", map: map, extent:new Extent ({"xmin": 554418, "ymin": 166279, "xmax": 584505, "ymax": 144457, "spatialReference":{"wkid": 27700}}) }); I can't get view.goTo to work no matter what I do.
... View more
11-07-2018
01:37 AM
|
1
|
9
|
10268
|
POST
|
Got it to work by just pushing to the existing basemapGallery.source.basemaps.items array instead of providing a new one
... View more
11-05-2018
09:05 AM
|
1
|
0
|
434
|
POST
|
I've added my custom basemap to my basemap gallery but can't figure out how to add other basemaps. var customBMs = new LocalBasemapsSource( { basemaps:[ bm, Basemap.fromId("OS Open Background"), Basemap.fromId("OS Open Carto"), Basemap.fromId("OS Open Grey Labels"), Basemap.fromId("OS Open Grey"), Basemap.fromId("OS Open Rasters") ] } ); var basemapGallery = new BasemapGallery({ view: view, source:customBMs }); What id do I use for the OS Open maps? I've tried portal ids with no luck
... View more
11-05-2018
08:46 AM
|
0
|
2
|
613
|
POST
|
Solved: I misspelled "updateFeatures" as "updatedFeatures" in the parameter to the applyedits function. Oops!
... View more
10-22-2018
05:33 AM
|
0
|
0
|
743
|
POST
|
I'm trying to edit some features on a feature layer and am getting this error: message: "'addFeatures', 'updateFeatures' or 'deleteFeatures' parameter is required" name: "feature-layer:missing-parameters" What does it mean? Where is this parameter missing?
... View more
10-22-2018
05:29 AM
|
0
|
1
|
844
|
POST
|
Trying to add my custom basemap to my map like var customBasemap = new TileLayer({ url:"https://utility.arcgis.com/.../MapServer" }); map.add(customBasemap); But I'm getting this error: message: "The spatial reference of this layer does not meet the requirements of the view" name: "layerview:spatial-reference-incompatible" Is there any way around this error?
... View more
10-18-2018
02:56 AM
|
0
|
2
|
2689
|
Title | Kudos | Posted |
---|---|---|
1 | 11-05-2018 09:05 AM | |
1 | 11-07-2018 07:16 AM | |
1 | 11-07-2018 01:37 AM | |
1 | 10-05-2018 01:38 AM | |
3 | 11-07-2018 07:36 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|