Source of file api.mapscompat.php
Size: 0,463 Bytes - Last Modified: 2024-04-27T15:26:05+03:00
/tmp/current_snapshot/api/libs/api.mapscompat.php
1234567891011121314151617181920 | <?php /** * Maps services compatibility dispatcher */ $mapsCfg = rcms_parse_ini_file(CONFIG_PATH . 'ymaps.ini'); $mapsService = isset($mapsCfg['MAPS_SERVICE']) ? $mapsCfg['MAPS_SERVICE'] : 'yandex'; switch ($mapsService) { case 'yandex': include('api/libs/api.ymaps.php'); break; case 'google': include('api/libs/api.gmaps.php'); break; case 'leaflet': include('api/libs/api.lmaps.php'); break; } ?> |