Returning Filtered Published Maps

Q: What is returnLatestMaps?

A: returnMapsByID is a function that can be used to return the information of the most recent published map.

▼ How to use ▼

            
                const bs = require('bs.js');

                            #Reminder -> These functions can only be used in async functions
                async function onStart() {
                                const varName = await bs.returnLatestMaps(true, "FIRST_PUBLISHED")
                                #To see all the cool API json stuff you can use, write this
                        console.log(varName)
}
             
        

Parameters

1. automapper? -- Filter through maps that were made with automapping technology

2. sort? -- Way to filter through the maps

Go Home