Developer Discussions

Discuss topics with other Hexagon Geospatial Power Portfolio developers and experts to get the most out of our products.
Showing results for 
Search instead for 
Do you mean 
Regular Contributor
Posts: 253
Registered: ‎05-01-2016


I have noticed that if i add these two lines to the 

window.onload = function () {  }


section of my helloworld.js file when building an SDK application the code is not executed on the first time i load the webpage but any time i reload or regenerate the page then the two lines of code are successfuly executed.

The two lines of code are:


$GP.legend.find(function (ret) {
ret.legendItems[13].set_name("Pipeline FIPS: 71";

$GP.legend.find(function (ret) {


I am trying to rename a feature in the legend and set it to 80% transparent.  The code works fine after the first time the webpage is generated.