isq-portal / yii2-osmtileproxy
ISQ Yii2 OpenStreetMap Widget with local Tile Proxy Server for GDPR Compliance
Installs: 26
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:JavaScript
Type:yii2-extension
Requires
- php: >=7.4
README
OSMTileProxy is a Yii2 Extension for displaying an OpenStreetMap Map-Widget with marker and map tile storage via a local tile proxy server to reach GDPR/DSGVO compliance.
Installation
The preferred way to install this extension is through composer.
php composer.phar require --prefer-dist isq-portal/yii2-osmtileproxy "dev-master"
or add
"isq-portal/yii2-osmtileproxy": "dev-master"
to the require section of your composer.json
file.
Usage
# 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', ] ]); ?>