Skip to content

Instantly share code, notes, and snippets.

View kre1z0's full-sized avatar
:octocat:
CSS archbishop

Igor kre1z0

:octocat:
CSS archbishop
  • Ukraine, Khmelnytskyi
View GitHub Profile
@kre1z0
kre1z0 / scriptInclude.js
Created February 5, 2021 10:31
function for include script
export function script(url) {
if (Array.isArray(url)) {
let self = this;
let prom = [];
url.forEach(function (item) {
prom.push(self.script(item));
});
return Promise.all(prom);
}
@kre1z0
kre1z0 / yandex.js
Last active February 5, 2021 10:25
sGis react component for yandex map
import { Component } from "react";
import { geo } from "@evergis/sgis/es/Crs";
import { throttle } from "lodash";
import withEvergis from "HOC/withEvergis";
import { script } from "./script";
import { yandexContainerId } from "components/EvergisMap/TilesLayers/Yandex/yandexContainerId";
import { yandexCopyrightsId } from "components/EvergisMap/Copyrights/copyrightId";