POST
|
Good point but not really important here u nless you are actually seeing the layer in the 4x version on CodePen using any browser. What browser are you seeing it in? I'm using Chrome v87.0.4280.88 and Edge v87.0.664.66.
... View more
01-05-2021
07:35 AM
|
0
|
0
|
132
|
POST
|
Here is how to do that through direct dom manipulation. < ! 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 > Simple Map < / title > < link rel = "stylesheet" href = "https://js.arcgis.com/3.29/esri/css/esri.css" > < style > html , body , #map { height : 100 % ; margin : 0 ; padding : 0 ; } #attrDiv { position : absolute ; right : 5px ; top : 5px ; z - index : 30 ; text - align : right ; } < / style > < script src = "https://js.arcgis.com/3.29/" > < / script > < script > var map ; require ( [ "esri/map" , "dojo/query" , "dojo/dom-construct" , "dojo/domReady!" ] , function ( Map , query , domConstruct ) { map = new Map ( "map" , { basemap : "topo" , //For full list of pre-defined basemaps, navigate to http://arcg.is/1JVo6Wd center : [ - 122.45 , 37.75 ] , // longitude, latitude zoom : 13 } ) ; var attSpan = query ( ".esriAttribution" ) [ 0 ] ; var attDiv = domConstruct . create ( 'div' , { id : 'attrDiv' } ) ; domConstruct . place ( attSpan , attDiv ) ; domConstruct . place ( attDiv , "map_container" ) ; } ) ; < / script > < / head > < body > < div id = "map" > < / div > < / body > < / html >
... View more
09-12-2019
05:39 AM
|
0
|
0
|
41
|
POST
|
Hi, A js-api-script is calling an asynchronous ArcGis-Server-Geoprocessing-Service: gp = new Geoprocessor(<url>/GPServer/..."); gp.submitJob(params, completeCallback, statusCallback, jobFailed); The Geoprocessing-Service executes the Tool "Calculate Value", which contains a Python script. What is the way to send the return-value (String) of the Python-Script back to the completeCallback-Function on Client? gp.getResultData seems to be the wrong way. Or is there any other posibility to get access to the return-value in the js ? Thanks, Chris
... View more
08-14-2017
12:40 AM
|
0
|
0
|
245
|
POST
|
You probably have the answer already, but for those who have run into this problem, before you publish the ArcPy script as a geoprocessing service, in the parameter section where you set up the different data values as input, you also need to add parameters and set them up as outputs. When you have values that you want to pass them to the geoprocessor tax in your web app, set the output parameters using arcpy.SetParameterAsText(index, value). Once you publish the geoprocessing service, the outputs will be saved as part of the geoprocessing job which can then be accessed by .getResultData().
... View more
09-04-2019
10:00 AM
|
1
|
0
|
62
|
POST
|
Have you looked at the valueExpression in the ClassBreaksRenderer. It uses the new Arcade format, which can be used to small calculation and use that as alternative for attributeField.
... View more
03-09-2017
06:56 AM
|
0
|
0
|
16
|
Online Status |
Offline
|
Date Last Visited |
3 weeks ago
|