Start now free!

Forums

Search  Users  Rules 
Close
Login:
Password:
Forgot your password?
Register
Login
 
Pages: 1
Reply
map.yandex.search component shows only two countries problem!, map.yandex.search compunent shows only the map of Turkey and USA (with the street names and etc.)
 
Hello, 
I need to use map.yandex.search, but when I include the component, the only countries which street addresses are avalible are USA and Turkey. How can I fix that? Thank you!
 
Hello,

Yandex maps are translated into 4 languages: Russian, Ukrainian, English and Turkish.
For Russian and Ukrainian languages, maps of all countries are available, for English and Turkish - only the USA and Turkey.

Please use the Google Address Search (bitrix:map.google.search) component.
 
Hi again, 

thank you for the fast response. I was wondering if it's posible to set custum language for this compunent (from component.php for example), so I can use the Russian version of the yandex map in English version of the site. 

Thanks you in advance!
 
Hi,

Yes, it is possible.
You should copy the map.yandex.system component to the user namespace and replace (in the copied component.php file) the following code
Code
$arResult['MAPS_SCRIPT_URL'] = 'http://api-maps.yandex.ru/'.$arParams['YANDEX_VERSION'].'/?load=package.full&mode=release&lang='.$arParams['LOCALE'].'&wizard=bitrix';

with
Code
$arResult['MAPS_SCRIPT_URL'] = 'http://api-maps.yandex.ru/'.$arParams['YANDEX_VERSION'].'/?load=package.full&mode=release&lang='.'ru-RU'.'&wizard=bitrix';
and copy the default template of the map.yandex.search component so it includes the copied map.yandex.system.

Please use the following links toget more info about component and template customization:
http://www.bitrixsoft.com/support/training/course/index.php?COURSE_ID=25&LESSON_ID=1399
http://www.bitrixsoft.com/support/training/course/index.php?COURSE_ID=10&LESSON_ID=397
Pages: 1
Reply
Users browsing this topic
Reply form
Enter your Post*
More
Files:
Drag and drop one or more files here
or select a file from your computer
Files:
Upload files
 

Bitrix Partner Network has more than 7,000 IT professionals who put their trust in our technologies and assist customers with installation and maintenance. All Bitrix Partners enjoy lucrative discounts on our products and services. Join our Partner Network now! Submitting a Bitrix Partner application is very easy and quick!
Partner Program
Free Online Training
Subscribe to Bitrix News