Select to view content in your preferred language

App will not display more than ten services

494
1
11-15-2013 05:11 AM
JustinWhisenant
New Contributor II
Okay, I am not the developer of this JS app just the analyst who is now tasked with making it work.  That being said, I will do my best to ask this question clearly.  Our app is unable to display more than ten services at a time.  The first image shows what happens to the eleventh service every time.  The on/off button does not work, the opacity slider is missing, the data is not drawn, and only one of the services' layers is shown in the ToC. 
[ATTACH=CONFIG]29131[/ATTACH]

I found the following error using the browser developer tools console.
[ATTACH=CONFIG]29132[/ATTACH]

When I follow the error, I am pointed to this line.  I noticed below that line that the code for "service_[0-9+]" is different from "Layer_[0-9]+".  Could this be the problem?  Any help would be appreciated here.
[ATTACH=CONFIG]29133[/ATTACH]
0 Kudos
1 Reply
by Anonymous User
Not applicable
Original User: jeff.pace

i think there is a problem with your regular express and you are reusing id's and then ending up with conflicts.  I am a disaster with regex so i can't help fix it.

look at the

/service_(0-9+)(_[0-9]....._Toggle

line and make sure it is giving the values you want.

also console.log "serviceNum" and make sure the 10th one is 10 and not 1 again,.
0 Kudos