Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@evergis/react

Package Overview
Dependencies
Maintainers
4
Versions
357
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@evergis/react - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

dist/hooks/LayerProps.js

5

dist/EvergisContext.js

@@ -6,5 +6,4 @@ "use strict";

const react_1 = require("react");
const api_1 = require("@evergis/api");
// @ts-ignore
const defaultApi = new api_1.Api({
const Api_1 = require("@evergis/api/es/Api");
const defaultApi = new Api_1.Api({
url: '/',

@@ -11,0 +10,0 @@ });

4

dist/hooks/useEvergisDynamicLayer.js

@@ -8,3 +8,4 @@ "use strict";

const useLayerOrder_1 = require("./useLayerOrder");
function useEvergisDynamicLayer({ name, zIndex, }) {
const useLayerVisibility_1 = require("./useLayerVisibility");
function useEvergisDynamicLayer({ name, zIndex, isDisplayed, }) {
const api = EvergisContext_1.useEvergisContext();

@@ -17,2 +18,3 @@ const { map } = MapContext_1.useMapContext();

useLayerOrder_1.useLayerOrder(layer, zIndex);
useLayerVisibility_1.useLayerVisibility(layer, isDisplayed);
return layer;

@@ -19,0 +21,0 @@ }

@@ -8,3 +8,4 @@ "use strict";

const useLayerOrder_1 = require("./useLayerOrder");
function useEvergisTileLayer({ name, zIndex, }) {
const useLayerVisibility_1 = require("./useLayerVisibility");
function useEvergisTileLayer({ name, zIndex, isDisplayed, }) {
const api = EvergisContext_1.useEvergisContext();

@@ -17,2 +18,3 @@ const { map } = MapContext_1.useMapContext();

useLayerOrder_1.useLayerOrder(layer, zIndex);
useLayerVisibility_1.useLayerVisibility(layer, isDisplayed);
return layer;

@@ -19,0 +21,0 @@ }

@@ -7,3 +7,4 @@ "use strict";

const MapContext_1 = require("../MapContext");
function useTileLayer({ maskUrl, zIndex }) {
const useLayerVisibility_1 = require("./useLayerVisibility");
function useTileLayer({ maskUrl, zIndex, isDisplayed }) {
const { map } = MapContext_1.useMapContext();

@@ -15,2 +16,3 @@ const layer = useProperty_1.useProperty({

useLayerOrder_1.useLayerOrder(layer, zIndex);
useLayerVisibility_1.useLayerVisibility(layer, isDisplayed);
return layer;

@@ -17,0 +19,0 @@ }

import * as React from 'react';
import { Api } from '@evergis/api';
import { Api } from '@evergis/api/es/Api';
declare type EvergisProviderProps = {

@@ -4,0 +4,0 @@ api?: Api;

import * as React from 'react';
import { createContext, useContext, useMemo } from 'react';
import { Api } from '@evergis/api';
// @ts-ignore
import { Api } from '@evergis/api/es/Api';
const defaultApi = new Api({

@@ -6,0 +5,0 @@ url: '/',

import * as React from 'react';
export declare const EvergisDynamicLayer: React.FC<any>;
import { EvergisDynamicLayerProps } from './hooks/useEvergisDynamicLayer';
export declare const EvergisDynamicLayer: React.FC<EvergisDynamicLayerProps>;

@@ -1,2 +0,2 @@

import { useEvergisDynamicLayer } from './hooks/useEvergisDynamicLayer';
import { useEvergisDynamicLayer, } from './hooks/useEvergisDynamicLayer';
export const EvergisDynamicLayer = props => {

@@ -3,0 +3,0 @@ useEvergisDynamicLayer(props);

import * as React from 'react';
import { UseEvergisTileLayerOptions } from './hooks/useEvergisTileLayer';
export declare const EvergisTileLayer: React.FC<UseEvergisTileLayerOptions>;
import { EvergisTileLayerProps } from './hooks/useEvergisTileLayer';
export declare const EvergisTileLayer: React.FC<EvergisTileLayerProps>;
import { EvergisDynamicLayer } from '@evergis/api/es/layers/EvergisDynamicLayer';
export declare function useEvergisDynamicLayer({ name, zIndex, }: UseEvergisTileLayerOptions): EvergisDynamicLayer;
export declare type UseEvergisTileLayerOptions = {
import { LayerProps } from './LayerProps';
export declare function useEvergisDynamicLayer({ name, zIndex, isDisplayed, }: EvergisDynamicLayerProps): EvergisDynamicLayer;
export declare type EvergisDynamicLayerProps = {
name: string;
zIndex: number;
};
} & LayerProps;

@@ -6,3 +6,4 @@ import { useProperty } from './useProperty';

import { useLayerOrder } from './useLayerOrder';
export function useEvergisDynamicLayer({ name, zIndex, }) {
import { useLayerVisibility } from './useLayerVisibility';
export function useEvergisDynamicLayer({ name, zIndex, isDisplayed, }) {
const api = useEvergisContext();

@@ -15,4 +16,5 @@ const { map } = useMapContext();

useLayerOrder(layer, zIndex);
useLayerVisibility(layer, isDisplayed);
return layer;
}
//# sourceMappingURL=useEvergisDynamicLayer.js.map
import { EvergisTileLayer } from '@evergis/api/es/layers/EvergisTileLayer';
export declare function useEvergisTileLayer({ name, zIndex, }: UseEvergisTileLayerOptions): EvergisTileLayer;
export declare type UseEvergisTileLayerOptions = {
import { LayerProps } from './LayerProps';
export declare function useEvergisTileLayer({ name, zIndex, isDisplayed, }: EvergisTileLayerProps): EvergisTileLayer;
export declare type EvergisTileLayerProps = {
name: string;
zIndex: number;
};
} & LayerProps;

@@ -6,3 +6,4 @@ import { useProperty } from './useProperty';

import { useLayerOrder } from './useLayerOrder';
export function useEvergisTileLayer({ name, zIndex, }) {
import { useLayerVisibility } from './useLayerVisibility';
export function useEvergisTileLayer({ name, zIndex, isDisplayed, }) {
const api = useEvergisContext();

@@ -15,4 +16,5 @@ const { map } = useMapContext();

useLayerOrder(layer, zIndex);
useLayerVisibility(layer, isDisplayed);
return layer;
}
//# sourceMappingURL=useEvergisTileLayer.js.map

@@ -1,1 +0,2 @@

export declare function useLayerOrder(layer: any, zIndex: number): void;
import { Layer } from '@evergis/sgis/es/layers/Layer';
export declare function useLayerOrder(layer: Layer, zIndex: number): void;
import { GetTileUrl, TileLayer } from '@evergis/sgis/es/layers/TileLayer';
export declare function useTileLayer({ maskUrl, zIndex }: LayerProps): TileLayer;
export declare type LayerProps = {
import { LayerProps } from './LayerProps';
export declare function useTileLayer({ maskUrl, zIndex, isDisplayed }: TileLayerProps): TileLayer;
export declare type TileLayerProps = {
maskUrl: string | GetTileUrl;
zIndex: number;
};
} & LayerProps;

@@ -5,3 +5,4 @@ import { TileLayer } from '@evergis/sgis/es/layers/TileLayer';

import { useMapContext } from '../MapContext';
export function useTileLayer({ maskUrl, zIndex }) {
import { useLayerVisibility } from './useLayerVisibility';
export function useTileLayer({ maskUrl, zIndex, isDisplayed }) {
const { map } = useMapContext();

@@ -13,4 +14,5 @@ const layer = useProperty({

useLayerOrder(layer, zIndex);
useLayerVisibility(layer, isDisplayed);
return layer;
}
//# sourceMappingURL=useTileLayer.js.map
import * as React from 'react';
import { LayerProps } from './hooks/useTileLayer';
export declare const TileLayer: React.FC<LayerProps>;
import { TileLayerProps } from './hooks/useTileLayer';
export declare const TileLayer: React.FC<TileLayerProps>;
{
"name": "@evergis/react",
"version": "0.1.0",
"version": "0.1.1",
"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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc