ym.modules.define('borders', [
'util.crossDomainXhr',
'util.querystring',
'regions.decode'
], function (provide, crossDomainXhr, queryString, decode) {
var HOST = ym.env.hosts.api.services.regions + 'v2';
function createFeature (geometry, properties) {
properties.hintContent = properties.name;
return {
type: 'Feature',
geometry: {
type: geometry.type,
coordinates: geometry.coordinates,
// evenOdd нужно для правильного отображения заливки полигонов с внутренним
// контуром
fillRule: 'evenOdd'
},
properties: properties
};
}
function parseResponse (regionsData) {
var regions = regionsData.regions;
var geojson = { type: 'FeatureCollection', features: [] };
for (var iso3166 in regions) {
if (regions.hasOwnProperty(iso3166)) {
var geometry = decode.geometry(iso3166, regionsData);
geojson.features.push(createFeature(geometry, regions[iso3166]));
}
}
return geojson;
}
/**
* Provides access to the geometry of various regions and countries.
* If you are using a content security policy, then you need to add the 'connect-src' rule for the following hosts: https://api-maps.yandex.ru https://suggest-maps.yandex.ru https://*.maps.yandex.net https://yandex.ru
* @name borders.load
* @static
* @function
* @param {String} region The ISO_3166-1 country code (RU, UA, BY, KZ, TR) for loading
* the regional area, '001' for loading the geometry of country borders, or AQ for
* loading the geometry of Antarctic.
* @param {Object} [options] Display options.
* @param {String} [options.lang] Language (ru, en, uk, be, kk, tr).
* @param {Number} [options.quality = 1] Quality level. Available values:
* <ul>
* <li>0 - minimal quality</li>
* <li>1 - standard quality</li>
* <li>2 - improved quality</li>
* <li>3 - high quality</li>
* </ul>
* The quality level affects how accurately curves are represented, as well as the volume of the data file.
* @param {String} [options.disputedBorders] Two-letter code of the country to use as the official reference for determining the administrative subordination
* of disputed territories. Accepted values: 'RU', 'UA', 'UN'. By default, it coincides with the country code that is specified when loading the API.
* Unsupported country codes are reset to RU. For the region '001' (borders of countries),
* the code 'UN' is supported — world borders according to the United Nations.
* @returns {vow.Promise} Promise object.
* @example
* // Show objects on the map using ObjectManager
* ymaps.borders.load('RU', {
* lang: 'en'
* }).then(function (geojson) {
* var features = geojson.features.map(function (feature) {
* feature.id = feature.properties.iso3166;
* return feature;
* });
* var objectManager = new ymaps.ObjectManager();
* objectManager.add(features);
* myMap.geoObjects.add(objectManager);
* });
* @example
* // Show objects on the map using GeoObject
* ymaps.borders.load('RU', {
* lang: 'en'
* }).then(function (geojson) {
* for (var i = 0; i < geojson.features.length; i++) {
* var geoObject = new ymaps.GeoObject(geojson.features[i]);
* myMap.geoObjects.add(geoObject);
* }
* });
*/
function load (region, options) {
options = options || {};
var lang = options.lang || ym.env.languageCode;
var quality = 'quality' in options ? options.quality : 1;
var disputedBorders = options.disputedBorders || ym.env.countryCode;
var query = {
lang: [lang, region].join('_'),
quality: quality,
disputedBorders: disputedBorders
};
var url = HOST + '?' + queryString.stringify(query);
return crossDomainXhr(url, { headers: { Accept: 'application/json' } }, true)
.then(function (response) {
return parseResponse(JSON.parse(response));
});
}
provide({ load: load });
});
Import status: Running file import (still 2 documents to extract)
Because of yet running and open tasks like text extraction and analysis maybe not all results were found yet, since at the moment of this search 2 file(s) could be only searched, overviewed and filtered by their file names only, not yet by their content and/or content based facets/filters!
You can prioritize the import(s) of (a) not yet processed file(s) by click on "Prioritize import" in the list view.
2022-02-24T04:00:00Z
borders.js
Filename extension
js
etl_file_b:
1
1
etl_enhance_mapping_id_time_millis_i:
0
0
etl_enhance_mapping_id_b:
1
1
etl_filter_blacklist_time_millis_i:
0
0
etl_filter_blacklist_b:
1
1
etl_filter_file_not_modified_time_millis_i:
2
2
etl_filter_file_not_modified_b:
1
1
etl_enhance_extract_text_tika_server_ocr_enabled_b:
1
1
etl_count_images_yet_no_ocr_i:
0
0
etl_enhance_ocr_descew_b:
1
1
etl_enhance_pdf_ocr_b:
1
1
etl_enhance_extract_text_tika_server_time_millis_i:
4
4
etl_enhance_extract_text_tika_server_b:
1
1
etl_enhance_detect_language_tika_server_time_millis_i:
3
3
etl_enhance_detect_language_tika_server_b:
1
1
etl_enhance_contenttype_group_time_millis_i:
0
0
etl_enhance_contenttype_group_b:
1
1
etl_enhance_pst_time_millis_i:
0
0
etl_enhance_pst_b:
1
1
etl_enhance_csv_time_millis_i:
0
0
etl_enhance_csv_b:
1
1
etl_enhance_file_mtime_time_millis_i:
0
0
etl_enhance_file_mtime_b:
1
1
etl_enhance_path_time_millis_i:
0
0
etl_enhance_path_b:
1
1
etl_enhance_extract_hashtags_time_millis_i:
0
0
etl_enhance_extract_hashtags_b:
1
1
etl_enhance_warc_time_millis_i:
0
0
etl_enhance_warc_b:
1
1
etl_enhance_zip_time_millis_i:
0
0
etl_enhance_zip_b:
1
1
etl_clean_title_time_millis_i:
0
0
etl_clean_title_b:
1
1
etl_enhance_annotations_time_millis_i:
3
3
etl_enhance_annotations_b:
1
1
etl_enhance_multilingual_time_millis_i:
0
0
etl_enhance_multilingual_b:
1
1
etl_enhance_regex_time_millis_i:
0
0
etl_enhance_regex_b:
1
1
etl_time_millis_i:
18
18
X-TIKA_Parsed-By:
- org.apache.tika.parser.CompositeParser
- org.apache.tika.parser.DefaultParser
- org.apache.tika.parser.csv.TextAndCSVParser
X-TIKA_Parsed-By-Full-Set:
- org.apache.tika.parser.CompositeParser
- org.apache.tika.parser.DefaultParser
- org.apache.tika.parser.csv.TextAndCSVParser
X-TIKA_content_handler:
ToTextContentHandler
ToTextContentHandler
X-TIKA_parse_time_millis:
1
1
X-TIKA_embedded_depth:
0
0
etl_enhance_pdf_ocr_time_millis_i:
0
0