web123456

Gaode JS API - Change the center point and zoom level of the map

var map = new ('container', { resizeEnable: true, center: [116.397428, 39.90923], zoom: 13 }); (('setCenter'), 'click', function() { // Set the zoom level and center point map.setZoomAndCenter(14, [116.205467, 39.907761]); // Add marker at the new center point var marker = new ({ map: map, position: [116.205467, 39.907761] }); });