Im a real estate agent trying to build a real estate MLS website using a third party API called repliers.io
My hurdle relates to getting MAP the corner boundaries of a map viewport to send that data to the repliers API and receive all the listings that fit within the boundaries of the map the user is currently viewing.
I found a plugin Called leafy maps which uses leaflet to get Mapbox displayed in the plugin. I thought this plugin would fix my problems but it seems there are some functions in that plugin that are not set up by the creator yet. This function is the ability to get the MAP lat & log values for each corner.
I figured I could use toolbox to get the return values of the boundaries for the map element provided by leafy maps.
However, I am struggling trying to figure out how to call a specific element from a third party plugin using toolbox.
I did some research and thought using the function document.getelementbyid would work by setting the ID attribute in the element and calling it in the function above.
However, this threw an error and bubble could not find the variable in its database.
What functions should I be using to call an element, and how do I specify a certain part of that element (aka the mapbox call to edit to return the boundaries)?