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

radar-sdk-js

Package Overview
Dependencies
Maintainers
0
Versions
187
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

radar-sdk-js - npm Package Compare versions

Comparing version 4.4.0-beta.0 to 4.4.0-beta.1

dist/ui/RadarPopup.d.ts

1

dist/index.d.ts

@@ -12,2 +12,3 @@ import MapUI from './ui/map';

marker: typeof MapUI.createMarker;
popup: typeof MapUI.createPopup;
autocomplete: typeof AutocompleteUI.createAutocomplete;

@@ -14,0 +15,0 @@ };

4

dist/types.d.ts

@@ -351,3 +351,3 @@ export type LogLevel = 'none' | 'info' | 'warn' | 'error';

}
export interface RadarMarkerPopupOptions extends maplibregl.PopupOptions {
export interface RadarPopupOptions extends maplibregl.PopupOptions {
text?: string;

@@ -370,3 +370,3 @@ html?: string;

height?: number | string;
popup?: RadarMarkerPopupOptions;
popup?: RadarPopupOptions;
}

@@ -373,0 +373,0 @@ export interface RadarLineOptions {

import maplibregl from 'maplibre-gl';
import RadarMap from './RadarMap';
import RadarMarker from './RadarMarker';
import type { RadarMapOptions, RadarMarkerOptions } from '../types';
import type { RadarMapOptions, RadarMarkerOptions, RadarPopupOptions } from '../types';
declare class MapUI {

@@ -9,3 +9,4 @@ static getMapLibre(): typeof maplibregl;

static createMarker(markerOptions?: RadarMarkerOptions): RadarMarker;
static createPopup(popupOptions: RadarPopupOptions): maplibregl.Popup;
}
export default MapUI;

@@ -19,4 +19,4 @@ import type RadarMap from './RadarMap';

remove(): void;
on(event: RadarFeatureEventType, callback: (event: RadarFeatureMouseEvent) => void): void;
on(eventType: RadarFeatureEventType, callback: (event: RadarFeatureMouseEvent) => void): void;
}
export default RadarMapFeature;

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

declare const _default: "4.4.0-beta.0";
declare const _default: "4.4.0-beta.1";
export default _default;
{
"name": "radar-sdk-js",
"version": "4.4.0-beta.0",
"version": "4.4.0-beta.1",
"description": "Web Javascript SDK for Radar, location infrastructure for mobile and web apps.",

@@ -5,0 +5,0 @@ "homepage": "https://radar.com",

@@ -59,3 +59,3 @@ <p align="center">

```html
<script src="https://js.radar.com/v4.4.0-beta.0/radar.min.js"></script>
<script src="https://js.radar.com/v4.4.0-beta.1/radar.min.js"></script>
```

@@ -77,4 +77,4 @@

<head>
<link href="https://js.radar.com/v4.4.0-beta.0/radar.css" rel="stylesheet">
<script src="https://js.radar.com/v4.4.0-beta.0/radar.min.js"></script>
<link href="https://js.radar.com/v4.4.0-beta.1/radar.css" rel="stylesheet">
<script src="https://js.radar.com/v4.4.0-beta.1/radar.min.js"></script>
</head>

@@ -103,4 +103,4 @@

<head>
<link href="https://js.radar.com/v4.4.0-beta.0/radar.css" rel="stylesheet">
<script src="https://js.radar.com/v4.4.0-beta.0/radar.min.js"></script>
<link href="https://js.radar.com/v4.4.0-beta.1/radar.css" rel="stylesheet">
<script src="https://js.radar.com/v4.4.0-beta.1/radar.min.js"></script>
</head>

@@ -136,4 +136,4 @@

<head>
<link href="https://js.radar.com/v4.4.0-beta.0/radar.css" rel="stylesheet">
<script src="https://js.radar.com/v4.4.0-beta.0/radar.min.js"></script>
<link href="https://js.radar.com/v4.4.0-beta.1/radar.css" rel="stylesheet">
<script src="https://js.radar.com/v4.4.0-beta.1/radar.min.js"></script>
</head>

@@ -140,0 +140,0 @@

@@ -62,2 +62,3 @@ import Config from './config';

marker: MapUI.createMarker,
popup: MapUI.createPopup,
autocomplete: AutocompleteUI.createAutocomplete,

@@ -64,0 +65,0 @@ };

@@ -467,3 +467,3 @@ export type LogLevel = 'none' | 'info' | 'warn' | 'error'

export interface RadarMarkerPopupOptions extends maplibregl.PopupOptions {
export interface RadarPopupOptions extends maplibregl.PopupOptions {
text?: string;

@@ -492,3 +492,3 @@ html?: string;

// popup configs
popup?: RadarMarkerPopupOptions;
popup?: RadarPopupOptions;
}

@@ -495,0 +495,0 @@

@@ -5,4 +5,5 @@ import maplibregl from 'maplibre-gl';

import RadarMarker from './RadarMarker';
import RadarPopup from './RadarPopup';
import type { RadarMapOptions, RadarMarkerOptions } from '../types';
import type { RadarMapOptions, RadarMarkerOptions, RadarPopupOptions } from '../types';

@@ -23,4 +24,9 @@ class MapUI {

}
public static createPopup(popupOptions: RadarPopupOptions): maplibregl.Popup {
const popup = new RadarPopup(popupOptions);
return popup;
}
}
export default MapUI;

@@ -83,3 +83,3 @@ import RadarMapFeature from './RadarMapFeature';

addFeatureToMap();
} else { // wait for map to load up to 1 second, or abort
} else { // wait for map to load up to 3 seconds, or abort
let count = 0;

@@ -90,7 +90,7 @@ let interval = setInterval(() => {

addFeatureToMap();
} else if (++count >= 5) {
} else if (++count >= 30 /* 3 seconds */) {
clearInterval(interval);
Logger.warn(`could not add polyline feature ${feature.id}`);
Logger.warn(`could not add line feature ${feature.id}`);
}
}, 200);
}, 100);
}

@@ -97,0 +97,0 @@

@@ -57,9 +57,9 @@ import type RadarMap from './RadarMap';

// register events with feature layer
on(event: RadarFeatureEventType, callback: (event: RadarFeatureMouseEvent) => void) {
this._map.on(event, this.id, (originalEvent: any) => {
callback(new RadarFeatureMouseEvent(event, this, originalEvent));
on(eventType: RadarFeatureEventType, callback: (event: RadarFeatureMouseEvent) => void) {
this._map.on(eventType, this.id, (event: any) => {
callback(new RadarFeatureMouseEvent(eventType, this, event));
});
// add pointer cursor if feature is clickable
if (event === 'click') {
if (eventType === 'click') {
this._map.on('mouseenter', this.id, () => {

@@ -66,0 +66,0 @@ this._map.getCanvas().style.cursor = 'pointer';

@@ -163,2 +163,3 @@ import maplibregl from 'maplibre-gl';

element.addEventListener('click', (e) => {
e.stopPropagation();
this.fire('click', new RadarMarkerMouseEvent('click', this, e));

@@ -165,0 +166,0 @@ });

@@ -71,3 +71,3 @@ import RadarMapFeature from './RadarMapFeature';

addFeatureToMap();
} else { // wait for map to load up to 1 second, or abort
} else { // wait for map to load up to 3 seconds, or abort
let count = 0;

@@ -78,7 +78,7 @@ let interval = setInterval(() => {

addFeatureToMap();
} else if (++count >= 5) {
} else if (++count >= 30 /* 3 seconds */) {
clearInterval(interval);
Logger.warn(`could not add polygon feature ${feature.id}`);
}
}, 200);
}, 100);
}

@@ -85,0 +85,0 @@

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

export default '4.4.0-beta.0';
export default '4.4.0-beta.1';

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

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