I am trying to parse both the values to the corresponding words to fetch data from GeoServer and return me the value, like this:
route.mergeNewParams({viewparams: "'word1:+source;word2:+target"});
But its not working. In fact no values(source and target) are being assigned to the respective words(word1, word2). I have also tried it to do this way:
route.mergeNewParams({viewparams: "word1:"+source});
route.mergeNewParams({viewparams: "word2:"+target});
But in this case last 2nd call of function is overwriting the 1st call.
source
&target
string variables? or do you actually want to pass the the string whose value is 'source'?