PHP code example of jxlwqq / tencent-map
1. Go to this page and download the library: Download jxlwqq/tencent-map library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jxlwqq / tencent-map example snippets
$form->tencentMap('latitude', 'longitude', '经纬度');
// 设置地图高度
$form->tencentMap('latitude', 'longitude', '经纬度')->height(500);
// 设置地图缩放
$form->tencentMap('latitude', 'longitude', '经纬度')->zoom(13);
// 设置默认值
$form->tencentMap('latitude', 'longitude', '经纬度')->default(['lat' => 90, 'lng' => 90]);