Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nvanderburg committed Jan 18, 2017
1 parent 4e396de commit f9d92ec
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 121 deletions.
2 changes: 1 addition & 1 deletion MapPicker.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace app\components\widgets\Maps;
namespace proximitymad\yii2mapspickerwidget;


use yii\base\Widget;
Expand Down
9 changes: 6 additions & 3 deletions MapPickerAsset.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
<?php

namespace app\components\widgets\Maps;
namespace proximitymad\yii2mapspickerwidget;


use yii\web\AssetBundle;

class MapPickerAsset extends AssetBundle
{
public $sourcePath = '@app/components/widgets/Maps/assets/';

public $js = [
'js/map-picker.js'
];
public $depends = [
'yii\web\JqueryAsset',
];
public function init()
{
$this->sourcePath = __DIR__ . '/assets';
parent::init();
}

public function loadMapsLib($apiKey)
{
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Usage
Once the extension is installed, simply use it in your code by :

```php
echo \app\components\widgets\Maps\MapPicker::widget([
echo proximitymad\yii2mapspickerwidget\MapPicker::widget([
'apiKey'=>'gmaps-api-key' //required,
'search'=>'Madrid, Spain' //required
]);
Expand Down
115 changes: 0 additions & 115 deletions StaticMap.php

This file was deleted.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"require": {},
"autoload": {
"psr-4": {
"proximitymad\\yii2-mapspicker-widget\\": ""
"proximitymad\\yii2mapspickerwidget\\": ""
}
}
}

0 comments on commit f9d92ec

Please sign in to comment.