ohvitorino/openlayers3

此包已被废弃,不再维护。没有建议的替代包。

Openlayers 3 - 一款高性能、功能丰富的库,满足您的所有地图需求

安装数: 39,625

依赖关系: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

语言:JavaScript

类型:组件

3.15.1 2016-04-15 10:33 UTC

This package is auto-updated.

Last update: 2022-02-01 12:46:08 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"
    }
}