Skip to content

Commit

Permalink
исправлена ошибка координат по умолчанию для Яндекс.Карт
Browse files Browse the repository at this point in the history
  • Loading branch information
aVadim483 committed May 8, 2015
1 parent d7cbc3b commit 594f8f0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Created by .ignore support plugin (hsz.mobi)

## Directory-based project format
.idea/
4 changes: 2 additions & 2 deletions config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
/*
* Карта
*/
$config['map_type']='google'; //yandex или google
$config['map_type']='yandex'; //yandex или google
$config['map_width']='600px';
$config['map_height']='400px';
$config['map_center']='55.75703,37.61614';//Москва
$config['map_center']='55.75703,37.61614';
$config['map_zoom']='15';
$config['map_enablescrollzoom']= '1';
$config['map_showtoolbar']= '1';
Expand Down
4 changes: 2 additions & 2 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<lang name="russian">Maps - Яндекс/Google карты</lang>
</name>
<author>
<lang name="default">extravert, Alto CMS Team</lang>
<lang name="default">extravert</lang>
</author>
<homepage>http://altocms.ru</homepage>
<version>1.1.4</version>
<version>1.1.5</version>
<dirname>maps</dirname>
<requires>
<alto>
Expand Down
2 changes: 1 addition & 1 deletion templates/skin/default/fields/customs/maps/yandex/edit.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script type="text/javascript">
ymaps.ready(function () {
var ymap = new ymaps.Map("ItemMap", {
center: {json var=Config::Get('plugin.maps.map_center')},
center: {json var=$aMapDefaultCenter},
zoom: {Config::Get('plugin.maps.map_zoom')},
type: "yandex#map"
});
Expand Down

0 comments on commit 594f8f0

Please sign in to comment.