isq-portal / yii2-osmtileproxy
ISQ Yii2 OpenStreetMap Widget 与本地 Tile 代理服务器结合,以符合 GDPR 标准
0.0.1
2023-05-12 13:38 UTC
Requires
- php: >=7.4
README
OSMTileProxy 是一个 Yii2 扩展,用于显示 OpenStreetMap 地图小部件,通过本地 Tile 代理服务器进行标记和地图瓦片存储,以实现 GDPR/DSGVO 合规性。
安装
安装此扩展的首选方式是通过 composer。
php composer.phar require --prefer-dist isq-portal/yii2-osmtileproxy "dev-master"
或者
"isq-portal/yii2-osmtileproxy": "dev-master"
将以下内容添加到您的 composer.json
文件的 require 部分中。
使用方法
# add to composer.json "require-dev" : { ..., "isq-portal/yii2-osmtileproxy": "@dev" } # temporary dev local path (../) solution: "repositories": [ ..., { "type": "path", "url": "../yii2-osmtileproxy" } ], # composer update # import class to view use IsqPortal\Yii2Osmtileproxy\OSMap; # integrate widget to view with options., e.g.: <?= OSMap::widget(['options' => [ 'height' => '400px', 'initialZoom' => '16', 'markerText' => 'Schwendenerstr. 31, 14195 Berlin', 'markerColor' => 'blue', 'width' => '100%', 'longitude' => '52.45202093', 'latitude' => '13.29243064', ] ]); ?>