2017 © Pedro Peláez
 

yii2-extension yii2-iyo

Integration of Yii and OpenLayers

image

amilna/yii2-iyo

Integration of Yii and OpenLayers

  • Thursday, April 13, 2017
  • by aaiyo
  • Repository
  • 2 Watchers
  • 2 Stars
  • 36 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

IYO

Integration of Yii and OpenLayers, (*1)

Require

gdal-bin, postgis, proj, libmapnik2, mapnik-utils, python-webpy, python-flup, python-openssl, nodejs (optional), php5-sqlite, php5-pgsql, (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Since this package do not have stable release on packagist, you should use these settings in your composer.json file :, (*4)

"minimum-stability": "dev",
"prefer-stable": true,
"repositories":[

        {
            "type": "vcs",
            "url": "https://github.com/aaiyo/yii2-kcfinder"
        }   
   ]

After, either run, (*5)

php composer.phar require --prefer-dist amilna/yii2-iyo "dev-master"

or add, (*6)

"amilna/yii2-iyo": "dev-master"

to the require section of your composer.json file., (*7)

run migration for database, (*8)

./yii migrate --migrationPath=@amilna/blog/migrations
./yii migrate --migrationPath=@amilna/iyo/migrations

add in modules section of main config, (*9)

    'gridview' =>  [
        'class' => 'kartik\grid\Module',
    ],
    'blog' => [
        'class' => 'amilna\blog\Module',
        /* 'userClass' => 'dektrium\user\models\User', // example if use another user class, default is 'common\models\User' */
    ],
    'iyo' => [
        'class' => 'amilna\iyo\Module',
        /* 'userClass' => 'dektrium\user\models\User', // example if use another user class, default is 'common\models\User' */
        'geom_col'=>'the_geom'
        /* see vendor/amilna/yii2-iyo/Module.php for more options */ 
    ],

Set .htaccess, (*10)

DirectoryIndex index.php

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php)

RewriteRule . index.php

Usage

Once the extension is installed, check the url: [your application base url]/index.php/iyo, (*11)

To Do

  1. Create interactive layer & map settings

The Versions

13/04 2017

dev-master

9999999-dev

Integration of Yii and OpenLayers

  Sources   Download

BSD-3-Clause

The Requires

 

by Satrio Arditama

extension yii2 map openlayers