|
POST
|
This works great. The button element is good. It has that 3d-ish click style. Thank you.
... View more
10-09-2019
10:19 AM
|
0
|
0
|
6271
|
|
POST
|
Thanks. This may not work out afterall because the map takes longer to load when adding "dijit/form/Button". I am looking into building a widget using React. add to require "dijit/form/Button" var view = new MapView({ map: map, container: "viewDiv", center: [lng, lat], zoom: 12, padding: padding, constraints: { maxScale: 285 }, autoResize: true, popup: { viewModel: { actions: { zoom: false }, actionsMenuEnabled: false }, dockEnabled: false, dockOptions: { breakpoint: false, }, featureNavigationEnabled: true } }); create button var button = new Button({ type: "button", iconClass: "esri-icon-collection esri-widget--button esri-widget esri-interactive", showLabel: false, label: "", onClick: function(){ console.log("clicked"); } }); then add to view view.ui.add(button, "top-right");
... View more
10-02-2019
12:04 PM
|
0
|
1
|
6271
|
|
POST
|
What are all of the states of FullScreen? I'm looking for a "click" state because the watch on "state" happens when the browser is already going into fullstate mode. var fullscreenWatch = watchUtils.watch(fullscreen.viewModel, "state", function (newValue, oldValue) {
... View more
10-02-2019
10:58 AM
|
0
|
1
|
1909
|
|
POST
|
I am using JS API 4.12. What options are available to create custom buttons with events to a MapView? Do I create a custom widget or use dojo? I'm not sure if this is valid, but I tried using dojo by adding "dijit/form/Button" but the rendered dojo button appears to add a toggle button and other stuff.
... View more
10-01-2019
11:39 AM
|
0
|
5
|
6996
|
|
POST
|
Is zoom required if you're requesting the map to be at full extent? I'm not able to move to full extent. If I add zoom, the map just zooms. var featureLayer = map.layers.getItemAt(1); view.goTo({ target: featureLayer.fullExtent, zoom: 11 }, ZoomOptions); Using it like this does nothing view.goTo(featureLayer.fullExtent);
... View more
09-25-2019
03:29 PM
|
0
|
1
|
12407
|
|
POST
|
Does JS 4.12 have a layout framework like the dijit.layout shown in this JS 3.29 example? https://developers.arcgis.com/javascript/3/jssamples/layout_fullmaplayoutwithborderandmargin.html
... View more
09-20-2019
09:07 AM
|
0
|
2
|
912
|
|
POST
|
I am using a popup to display a sales price and other fields. I want to format the sales price using an arcade expression in an expressionInfos section. I want this format: Text(Number($feature.SALE_PRICE, 0), '$###,###.##') but it's not working. content = "<div><span class='pao-black'>sale price:</span><span class='pao-blue'> {expression/sale-price}</span></div>" var popupTemplate = { title: "<div>aaa</div>", content: content, actions: [goToxxx], expressionInfos: [{ name: "sale-price", expression: $feature.SALE_PRICE // outputs value // expression: "Number($feature.SALE_PRICE, 0)" // strangly, this does not work // expression: "Number($feature.SALE_PRICE * 1, 0)" // but this does not work // expression: "Text($feature.SALE_PRICE, '$###,###.##')" // outputs value but does not format // expression: "Text(Number($feature.SALE_PRICE, 0), '$###,###.##')" // does not format }] };
... View more
09-13-2019
09:28 AM
|
0
|
1
|
938
|
|
POST
|
How do I capture the map view symbology using Print Widget? Map view Print Widget Result is missing symbology
... View more
08-27-2019
10:34 AM
|
0
|
0
|
530
|
|
POST
|
Yes! Thank you, Ben. I am able to expand the extent prior to adding it to json using your method. xmin = results.features[0].geometry.extent.xmin; ymin = results.features[0].geometry.extent.ymin; xmax = results.features[0].geometry.extent.xmax; ymax = results.features[0].geometry.extent.ymax; var extent = new Extent({"xmin":xmin,"ymin":ymin,"xmax":xmax,"ymax":ymax}); extent.expand(1.3); xmin = extent.xmin; ymin = extent.ymin; xmax = extent.xmax; ymax = extent.ymax; // later on...add the expanded extent to json "mapOptions": { "showAttribution": false, "extent": { "xmin": xmin, "ymin": ymin, "xmax": xmax, "ymax": ymax, "spatialReference": { "wkid": wkid, "latestWkid": latestWkid } }
... View more
08-20-2019
05:31 AM
|
1
|
0
|
1482
|
|
POST
|
Is there a translation to use "expand" using json? I am building a json Web_Map_as_JSON request. var symbol = { "type": "simple", "symbol": { "type": "esriSFS", "style": "esriSFSNull", "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [66, 244, 206], "width": 4 } } }; // end symbol var drawingInfo = { "renderer": symbol }; // end drawingInfo var webParcelLinesLayers = { "id": "WebLayers_2139", "title": "WebLayers_2139", "opacity": 1, "minScale": 0, "maxScale": 0, "url": mapLayerAndLabelsUrl, "layers": [ { "id": 4, "layerDefinition": { "drawingInfo": drawingInfo, "source": { "type": "mapLayer", "mapLayerId": 4 }, "definitionExpression": "PARID = '" + parid + "'" } } ] }; // end webParcelLinesLayers var operationalLayers = [{ "id": "World_Street_Map_417", "title": "World_Street_Map_417", "opacity": 1, "minScale": 0, "maxScale": 0, "url": latestYearAerialUrl }]; // end operationalLayers operationalLayers.push(webParcelLinesLayers); var json = { "mapOptions": { "showAttribution": false, "extent": { "xmin": xmin, "ymin": ymin, "xmax": xmax, "ymax": ymax, "spatialReference": { "wkid": wkid, "latestWkid": latestWkid } }, "spatialReference": { "wkid": wkid, "latestWkid": latestWkid }, // "scale" : 100.0, "rotation" : 0 }, "operationalLayers": operationalLayers, "exportOptions": { "outputSize": [840, 840], "dpi": 96 } }; // end json var Web_Map_as_JSON = JSON.stringify(json); var urlB = "Web_Map_as_JSON=" + encodeURIComponent(Web_Map_as_JSON); var urlC = "&Format=png32&Layout_Template=map_only&env:outSR=&env:processSR=&returnZ=false&returnM=false&returnTrueCurves=false&returnFeatureCollection=false&context=&f=pjson";
... View more
08-19-2019
10:22 AM
|
0
|
1
|
1482
|
|
POST
|
I am using esriRequest to export a map to PNG. How would I set a dynamic zoom level in mapOptions so that the entire selected parcel is zoomed in with some padding, as shown in the bottom image? If I include a scale value, the parcel zoom level is not dynamic, and is either zoomed in too much, or too little.
... View more
08-19-2019
09:24 AM
|
0
|
6
|
1596
|
|
POST
|
What is the width and height size type in exportOptions? Pixels, Points??
... View more
08-08-2019
11:09 AM
|
0
|
1
|
698
|
|
POST
|
I found the issue. I am using pdf.js to generated PDF files in another part of my website, and unrelated to Esri. The map works when I remove the reference to pdf.js.
... View more
07-11-2019
09:38 AM
|
0
|
0
|
1092
|
|
POST
|
Thanks, but I am using wordpress and need esri to load as defered and in footer, otherwise it gets multipleDefined errors from jQuery. Chrome\Firefox\Opera\Edge all work as is.
... View more
07-11-2019
08:57 AM
|
0
|
0
|
1092
|
|
POST
|
Getting error in IE11. No error in other browsers. For example, using a basic Esri sample below errors in IE. Same issue in 4.12 Version 3.9 works in IE // ************************************************* // API loaded in footer... // https://js.arcgis.com/4.11/esri/css/main.css // https://js.arcgis.com/4.11/ // ************************************************* function somefunc() { try { require(["esri/Map", "esri/views/MapView"], function(Map, MapView) { var map = new Map({ basemap: "streets" }); var view = new MapView({ container: "mapViewer", map: map, zoom: 4, center: [15, 65] // longitude, latitude }); }); } catch (error) { console.log(error); } } // **************************** // Error output to console // **************************** TypeError: [object Object] is not an object! { [functions]: , @@hasInstance: undefined, @@isConcatSpreadable: undefined, @@iterator: undefined, @@match: undefined, @@observable: undefined, @@replace: undefined, @@search: undefined, @@species: undefined, @@split: undefined, @@toPrimitive: undefined, @@toStringTag: undefined, @@unscopables: undefined, __proto__: { }, at Anonymous function (https://js.arcgis.com/4.11/?ver=4.11:429:211) at K (https://js.arcgis.com/4.11/?ver=4.11:19:73) at K (https://js.arcgis.com/4.11/?ver=4.11:18:398) at K (https://js.arcgis.com/4.11/?ver=4.11:18:398) at K (https://js.arcgis.com/4.11/?ver=4.11:18:398) at K (https://js.arcgis.com/4.11/?ver=4.11:18:398) at K (https://js.arcgis.com/4.11/?ver=4.11:18:398)", Symbol()_g.hbfjhg26xy3: undefined }
... View more
07-11-2019
08:07 AM
|
0
|
3
|
1215
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-30-2024 01:32 PM | |
| 1 | 03-18-2024 08:18 AM | |
| 1 | 01-08-2024 07:24 AM | |
| 3 | 12-30-2022 11:36 AM | |
| 1 | 03-13-2023 07:40 AM |
| Online Status |
Offline
|
| Date Last Visited |
12-12-2025
08:09 AM
|