@evergis/react
Advanced tools
Comparing version 0.1.19 to 0.1.20
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const useProperty_1 = require("./useProperty"); | ||
const EvergisTileLayer_1 = require("@evergis/api/es/layers/EvergisTileLayer"); | ||
const EvergisContext_1 = require("../EvergisContext"); | ||
const EvergisTileLayer_1 = require("@evergis/api/es/layers/EvergisTileLayer"); | ||
const MapContext_1 = require("../MapContext"); | ||
const useLayerOrder_1 = require("./useLayerOrder"); | ||
const useLayerVisibility_1 = require("./useLayerVisibility"); | ||
const useProperty_1 = require("./useProperty"); | ||
function useEvergisTileLayer({ name, zIndex, isDisplayed, }) { | ||
@@ -16,4 +16,4 @@ const api = EvergisContext_1.useEvergisContext(); | ||
layer.name = name; | ||
layer.clearCache(); | ||
layer.redraw(); | ||
typeof layer.clearCache === "function" && layer.clearCache(); | ||
typeof layer.redraw === "function" && layer.redraw(); | ||
}, | ||
@@ -20,0 +20,0 @@ destructor: layer => map.indexOf(layer) !== -1 && map.removeLayer(layer), |
@@ -1,4 +0,4 @@ | ||
import { EvergisTileLayer, EvergisTileLayerParams } from '@evergis/api/es/layers/EvergisTileLayer'; | ||
import { LayerProps } from './LayerProps'; | ||
import { EvergisTileLayer, EvergisTileLayerParams } from "@evergis/api/es/layers/EvergisTileLayer"; | ||
import { LayerProps } from "./LayerProps"; | ||
export declare function useEvergisTileLayer({ name, zIndex, isDisplayed, }: EvergisTileLayerProps): EvergisTileLayer; | ||
export declare type EvergisTileLayerProps = EvergisTileLayerParams & LayerProps; |
@@ -1,7 +0,7 @@ | ||
import { useProperty } from './useProperty'; | ||
import { useEvergisContext } from '../EvergisContext'; | ||
import { EvergisTileLayer, } from '@evergis/api/es/layers/EvergisTileLayer'; | ||
import { useMapContext } from '../MapContext'; | ||
import { useLayerOrder } from './useLayerOrder'; | ||
import { useLayerVisibility } from './useLayerVisibility'; | ||
import { EvergisTileLayer, } from "@evergis/api/es/layers/EvergisTileLayer"; | ||
import { useEvergisContext } from "../EvergisContext"; | ||
import { useMapContext } from "../MapContext"; | ||
import { useLayerOrder } from "./useLayerOrder"; | ||
import { useLayerVisibility } from "./useLayerVisibility"; | ||
import { useProperty } from "./useProperty"; | ||
export function useEvergisTileLayer({ name, zIndex, isDisplayed, }) { | ||
@@ -14,4 +14,4 @@ const api = useEvergisContext(); | ||
layer.name = name; | ||
layer.clearCache(); | ||
layer.redraw(); | ||
typeof layer.clearCache === "function" && layer.clearCache(); | ||
typeof layer.redraw === "function" && layer.redraw(); | ||
}, | ||
@@ -18,0 +18,0 @@ destructor: layer => map.indexOf(layer) !== -1 && map.removeLayer(layer), |
{ | ||
"name": "@evergis/react", | ||
"version": "0.1.19", | ||
"version": "0.1.20", | ||
"description": "React components for creating GIS apps with evergis server", | ||
@@ -5,0 +5,0 @@ "author": "everpoint", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
87330