New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@maptiler/geocoding-control

Package Overview
Dependencies
Maintainers
4
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maptiler/geocoding-control - npm Package Compare versions

Comparing version 0.0.42 to 0.0.43

2

dist/lib/LeafletGeocodingControl.d.ts
import * as L from "leaflet";
export { createLeafletMapController } from "./leafletMapController";
import type { ControlOptions } from "./types";
declare type LeafletControlOptions = ControlOptions & L.ControlOptions & {
type LeafletControlOptions = ControlOptions & L.ControlOptions & {
/**

@@ -6,0 +6,0 @@ * If `true`, a [Marker](https://leafletjs.com/reference.html#marker) will be added to the map at the location of the user-selected result using a default set of Marker options.

@@ -1,7 +0,7 @@

import { type Map, type IControl, type MarkerOptions, type FlyToOptions, type FitBoundsOptions, Evented, type FillLayerSpecification, type LineLayerSpecification } from "maplibre-gl";
import type { Map, IControl, MarkerOptions, FlyToOptions, FitBoundsOptions, FillLayerSpecification, LineLayerSpecification } from "maplibre-gl";
import type maplibregl from "maplibre-gl";
import type { ControlOptions } from "./types";
export { createMaplibreglMapController } from "./maplibreglMapController";
declare type MapLibreGL = typeof maplibregl;
declare type MapLibreControlOptions = ControlOptions & {
type MapLibreGL = typeof maplibregl;
type MapLibreControlOptions = ControlOptions & {
/**

@@ -46,3 +46,3 @@ * A Maplibre GL instance to use when creating [Markers](https://maplibre.org/maplibre-gl-js-docs/api/markers/#marker).

};
export declare class GeocodingControl extends Evented implements IControl {
export declare class GeocodingControl extends EventTarget implements IControl {
#private;

@@ -49,0 +49,0 @@ constructor(options: MapLibreControlOptions);

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

export declare type Feature = GeoJSON.Feature & {
export type Feature = GeoJSON.Feature & {
id: string;

@@ -10,7 +10,7 @@ text: string;

};
export declare type FeatureCollection = {
export type FeatureCollection = {
type: "FeatureCollection";
features: Feature[];
};
export declare type MapController = {
export type MapController = {
setProximityChangeHandler(proximityChangeHandler: undefined | ((proximity: [number, number] | undefined) => void)): void;

@@ -24,4 +24,4 @@ setMapClickHandler(mapClickHandler: undefined | ((coordinates: [number, number]) => void)): void;

};
export declare type Proximity = [number, number] | undefined;
export declare type ControlOptions = {
export type Proximity = [number, number] | undefined;
export type ControlOptions = {
/**

@@ -28,0 +28,0 @@ * Maptiler API key

{
"name": "@maptiler/geocoding-control",
"version": "0.0.42",
"version": "0.0.43",
"type": "module",

@@ -46,3 +46,3 @@ "author": {

"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^1.1.0",
"@sveltejs/vite-plugin-svelte": "^1.2.0",
"@tsconfig/svelte": "^3.0.0",

@@ -54,9 +54,9 @@ "@turf/buffer": "^6.5.0",

"prettier": "^2.7.1",
"prettier-plugin-svelte": "^2.8.0",
"svelte": "^3.52.0",
"prettier-plugin-svelte": "^2.8.1",
"svelte": "^3.53.1",
"svelte-check": "^2.9.2",
"svelte-preprocess": "^4.10.7",
"tslib": "^2.4.1",
"typescript": "^4.8.4",
"vite": "^3.2.3"
"typescript": "^4.9.3",
"vite": "^3.2.4"
},

@@ -63,0 +63,0 @@ "peerDependencies": {

@@ -9,8 +9,4 @@ import * as L from "leaflet";

MultiLineString,
Feature as TurfFeature,
Position,
} from "@turf/helpers";
import difference from "@turf/difference";
import union from "@turf/union";
import buffer from "@turf/buffer";
import { setMask } from "./mask";

@@ -17,0 +13,0 @@

@@ -1,10 +0,9 @@

import {
type Map,
type IControl,
type MarkerOptions,
type FlyToOptions,
type FitBoundsOptions,
Evented,
type FillLayerSpecification,
type LineLayerSpecification,
import type {
Map,
IControl,
MarkerOptions,
FlyToOptions,
FitBoundsOptions,
FillLayerSpecification,
LineLayerSpecification,
} from "maplibre-gl";

@@ -64,3 +63,3 @@ import type maplibregl from "maplibre-gl";

export class GeocodingControl extends Evented implements IControl {
export class GeocodingControl extends EventTarget implements IControl {
#gc?: GeocodingControlComponent;

@@ -122,5 +121,3 @@

]) {
this.#gc.$on(eventName, (event) =>
this.fire(eventName.toLowerCase(), event.detail)
);
this.#gc.$on(eventName, (event) => this.dispatchEvent(event));
}

@@ -127,0 +124,0 @@

@@ -16,4 +16,2 @@ import type MapLibreGL from "maplibre-gl";

import union from "@turf/union";
import buffer from "@turf/buffer";
import difference from "@turf/difference";
import type {

@@ -24,4 +22,2 @@ Polygon,

MultiLineString,
Feature as TurfFeature,
Position,
} from "@turf/helpers";

@@ -28,0 +24,0 @@ import { setMask } from "./mask";

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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