ohvitorino / openlayers3
此包已被废弃,不再维护。没有建议的替代包。
Openlayers 3 - 一款高性能、功能丰富的库,满足您的所有地图需求
3.15.1
2016-04-15 10:33 UTC
README
这是OpenLayers3的生产包。
使用composer安装包: composer require ohvitorino/openlayers3
Symfony (Assetic)
如果您想使用Assetic在Symfony中使用此包,您需要将以下配置添加到您的 config.yml
assetic: assets: openlayers3: inputs: - %kernel.root_dir%/../vendor/ohvitorino/openlayers3/ol.js openlayers3_css: inputs: - %kernel.root_dir%/../vendor/ohvitorino/openlayers3/ol.css
Components-installer
将OpenLayers3添加到项目的另一种方法是使用component-dir
选项。 component-dir
选项指定安装OpenLayers3的位置,例如在Symfony中的web/assets。
要使用此选项,您需要将以下内容添加到您的根composer.json
{ "require": { "robloach/component-installer": "*" }, "config": { "component-dir": "web/assets" } }