Reply To: mappress.min.js errors after update

Home Forums MapPress Support mappress.min.js errors after update Reply To: mappress.min.js errors after update

#17603
clickandcreate
Participant

    Thanks. I didn’t think about caching, but clearing the cache seems to have cleared it up.

    I am having a different JS issue on the front end, and I don’t know if maybe I should create a new thread for it. But after updating, I noticed that a script on the front end that centered and zoomed in on the POIs on my mashup map has quit working. The map ID is mapp4, and the console is giving me messages like

    Uncaught TypeError: mapp4.getPoiById is not a function
    at HTMLDivElement.<anonymous> ((index):353)
    at HTMLDivElement.handle (jquery.js:3)
    at HTMLDivElement.dispatch (jquery.js:3)
    at HTMLDivElement.r.handle (jquery.js:3)

    In my script I plugged in an ID number just to make sure the variable I was using to generate the ID wasn’t the problem. I took the number from the “data-mapp-poi” attribute of a marker on the map, but I don’t know if that is the number I should be using. Did something change with the js to zoom POIs?