update inbox list
This commit is contained in:
9
vendor/scrivo/highlight.php/test/markup/arcade/profile.expect.txt
vendored
Normal file
9
vendor/scrivo/highlight.php/test/markup/arcade/profile.expect.txt
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<span class="hljs-comment">/*
|
||||
Isolated test for the most recent version
|
||||
*/</span>
|
||||
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">offsetPopulation</span>(<span class="hljs-params">offset</span>)</span>{
|
||||
<span class="hljs-keyword">var</span> popDensity = <span class="hljs-built_in">Round</span>( <span class="hljs-symbol">$feature</span>.POPULATION / <span class="hljs-built_in">AreaGeodetic</span>(<span class="hljs-built_in">Geometry</span>(<span class="hljs-symbol">$feature</span>), <span class="hljs-string">"square-kilometers"</span>) );
|
||||
<span class="hljs-keyword">var</span> geom = <span class="hljs-built_in">Geometry</span>({ <span class="hljs-string">'x'</span>: offset.x, <span class="hljs-string">'y'</span>: offset.y, <span class="hljs-string">'spatialReference'</span>:{<span class="hljs-string">'wkid'</span>:<span class="hljs-number">102100</span>} });
|
||||
<span class="hljs-keyword">var</span> myLayer = <span class="hljs-built_in">FeatureSet</span>(<span class="hljs-symbol">$map</span>, [<span class="hljs-string">"POPULATION"</span>, <span class="hljs-string">"ELECTION-DATA"</span>]);
|
||||
<span class="hljs-keyword">return</span> popDensity;
|
||||
}
|
||||
9
vendor/scrivo/highlight.php/test/markup/arcade/profile.txt
vendored
Normal file
9
vendor/scrivo/highlight.php/test/markup/arcade/profile.txt
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Isolated test for the most recent version
|
||||
*/
|
||||
function offsetPopulation(offset){
|
||||
var popDensity = Round( $feature.POPULATION / AreaGeodetic(Geometry($feature), "square-kilometers") );
|
||||
var geom = Geometry({ 'x': offset.x, 'y': offset.y, 'spatialReference':{'wkid':102100} });
|
||||
var myLayer = FeatureSet($map, ["POPULATION", "ELECTION-DATA"]);
|
||||
return popDensity;
|
||||
}
|
||||
Reference in New Issue
Block a user