isq-portal/yii2-osmtileproxy

ISQ Yii2 OpenStreetMap Widget 与本地 Tile 代理服务器结合,以符合 GDPR 标准

安装: 21

依赖: 0

建议: 0

安全性: 0

星标: 0

关注者: 2

分支: 0

开放问题: 0

语言:JavaScript

类型:yii2-extension

0.0.1 2023-05-12 13:38 UTC

This package is auto-updated.

Last update: 2024-09-11 10:10:26 UTC


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',
                    ]
                ]); ?> 

许可证

MIT