Need to edit code for Simple Map

Job ID: 31429466

Budget: $10 – $30 USD

How to center the map view when I select and load new custom map tiles?

I have made a simple web UI where I select date of maps and it will show and load tiles exported from maptiler or gdal, but the problem is, it will not zoom and change map view center to the map tiles latest location. In short I cannot get the lat long of the loaded map tiles.

Selection is through listview or radio button.

Concept is like this "unmannedairlines.com/dev/tiger_stadium" but I need to put other location and it should be centered on the location that is loaded.

Source would be Maptiles or Geopackage
Related categories: JavaScript CSS HTML5 jQuery / Prototype Google Maps API