Can you help me with what changes I need to make in the code to use the application in leaflet or openlayers, thank you.