getCenter() //this method returns the current center point, an object with keys x and y, holding integers
getZoomFactor() //this method gets the current zoom factor, or the amount of tiles to display on a side. This will always be odd to allow for a center tile, and no weird offset.
coordinatesToSrcString(x,y) //this method converts a set of coordinates to the string that points to the image file to display at that position.
How do I get this to work? Do I need to make an update method that needs to be called constantly to account for changes to the zoom factor or tiles since the data changes after user actions. Is there a way to have a framework that will keep this updated on data changes or constantly up to date?
©2020 All rights reserved.