Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/location/source/src/ |
Upload File : |
import { BaseSource } from 'location.core'; import { Google } from 'location.google'; import { OSM, OSMFactory } from 'location.osm'; export class Factory { static create(code: string, languageId: string, sourceLanguageId: string, sourceProps = {}): ?BaseSource { const props = sourceProps; props.languageId = languageId; props.sourceLanguageId = sourceLanguageId; if (code === Google.code) { return new Google(props); } else if (code === OSM.code) { return OSMFactory.createOSMSource(props); } return null; } }