承接 elektromann/yii2-openlayers-maps 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

elektromann/yii2-openlayers-maps

Composer 安装命令:

composer require elektromann/yii2-openlayers-maps

包简介

Use free maps in your site

README 文档

README

Use free maps in your site

Yii2 OpenLayers Maps wiki pages

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist elektromann/yii2-openlayers-maps "*"

or add

"elektromann/yii2-openlayers-maps": "*"

to the require section of your composer.json file.

Usage

Show simple map

This will show a map.

<?= \elektromann\openlayers\Map::widget(); ?>

Set map center position

You can use longitude and latitude (LonLat) coordinates to set position.

<?= \elektromann\openlayers\Map::widget([
    'center' => [-0.1276474, 51.5073219], //London
]); ?>

Or you can use address to find coordinates by geocoding.

<?= \elektromann\openlayers\Map::widget([
    'center' => "London",
]); ?>

Show multi maps

To show multi maps echo more widgets.

<?= \elektromann\openlayers\Map::widget([
    'center' => "London",
]); ?>
<?= \elektromann\openlayers\Map::widget([
    'center' => [13.3888599, 52.5170365], //Berlin
]); ?>

Add markers to the map

You can add markers to the map.

<?= \elektromann\openlayers\Map::widget([
    'center' => [-0.1276474, 51.5073219],
    'markers' => [
        [], //Marker in the map center
        [
            'center' => "London, Bond street", //Set marker position
            'title' => "Bond street here", //Title of the marker
            'description' => "You can see Bond street", //Show wher one click on marker
        ],
    ]
]); ?>

More informations

For other options and informations visit wiki.

统计信息

  • 总下载量: 9.95k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2019-05-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固