Identify and repair javascript conversion script within our Ionic App

Job ID: 37353957

Budget: $30 – $250 USD

We have a script which converts an ArcGIS LYRX document into Geo Styler format. We then use geostyler plugin to load our style into openlayers.

Our script was programmed to collect the data from .lyrx documents and convert them. The script worked great without any issues when loading directly from the document.

We recently changed our app to load the lyrx data from our database. In this process we simply removed line returns and saved the data into the database. We then changed the function to accept a string from the database rather then read from the file. Once we did this it broke our labels and crashes our application. The basic style loads correctly and layers load correctly but labels cause the following javascript error.

JavaScript Error: {"type":"js.error","error":{"message":"Uncaught TypeError: e.label.match is not a function","url":"http://localhost/assets/index.b560671f.js","line":133,"col":209858,"errorObject":"{}"}}
2023-10-25 08:03:24.074 22709-22709 Capacitor/Console com.appNameHere.app E File: http://localhost/assets/index.b560671f.js - Line 133 - Msg: Uncaught TypeError: e.label.match is not a function

This is an error between our script and geostyler-openlayers-parser.

We are looking for someone to identify what changed that broke the script and make any changes needed to fix the issue and get our labels displaying again.
Related categories: JavaScript JSON