Socket
Socket
Sign inDemoInstall

@uiw/react-amap-map

Package Overview
Dependencies
Maintainers
1
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uiw/react-amap-map - npm Package Compare versions

Comparing version 2.7.0 to 2.7.1

8

cjs/index.js

@@ -53,3 +53,3 @@ "use strict";

var _excluded = ["className", "style", "children"];
var _excluded = ["className", "children"];

@@ -73,3 +73,2 @@ function Provider(props) {

var className = _ref.className,
style = _ref.style,
children = _ref.children,

@@ -121,7 +120,8 @@ props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);

ref: elmRef,
className: className,
className: "react-amap-wapper ".concat(className),
style: (0, _objectSpread2["default"])({
fontSize: 1,
width: '100%',
height: '100%'
}, style)
}, props.style)
}), AMap && map && typeof children === 'function' && children({

@@ -128,0 +128,0 @@ AMap: AMap,

@@ -46,5 +46,3 @@ "use strict";

if (container && !map && AMap) {
container.className = 'react-amap-wapper';
container.style.height = '100%';
container.style.width = '100%';
container.className = container.className + ' react-amap-wapper';
var instance = new AMap.Map(container, (0, _objectSpread2["default"])({

@@ -51,0 +49,0 @@ zoom: zoom

import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/extends";
var _excluded = ["className", "style", "children"];
var _excluded = ["className", "children"];
/// <reference types="@uiw/react-amap-types" />

@@ -25,3 +25,2 @@ import { useRef, useEffect, useImperativeHandle, Fragment, Children, cloneElement, isValidElement, forwardRef, useReducer } from 'react';

className,
style,
children

@@ -63,7 +62,8 @@ } = _ref,

ref: elmRef,
className: className,
className: "react-amap-wapper " + className,
style: _extends({
fontSize: 1,
width: '100%',
height: '100%'
}, style)
}, props.style)
}), AMap && map && typeof children === 'function' && children({

@@ -70,0 +70,0 @@ AMap,

@@ -20,5 +20,3 @@ import _extends from "@babel/runtime/helpers/extends";

if (container && !map && AMap) {
container.className = 'react-amap-wapper';
container.style.height = '100%';
container.style.width = '100%';
container.className = container.className + ' react-amap-wapper';
var instance = new AMap.Map(container, _extends({

@@ -25,0 +23,0 @@ zoom

{
"name": "@uiw/react-amap-map",
"version": "2.7.0",
"version": "2.7.1",
"description": "基于 React 封装的高德地图组件。AMap Component Based On React.",

@@ -34,4 +34,4 @@ "homepage": "https://uiwjs.github.io/react-amap/#/map",

"dependencies": {
"@uiw/react-amap-types": "2.7.0",
"@uiw/react-amap-utils": "2.7.0"
"@uiw/react-amap-types": "2.7.1",
"@uiw/react-amap-utils": "2.7.1"
},

@@ -38,0 +38,0 @@ "devDependencies": {

@@ -43,5 +43,5 @@ Map 组件

```jsx
import React from 'react';
import React, { useRef, useEffect } from 'react';
import ReactDOM from 'react-dom';
import { useMap, useRef, useMapContext, APILoader, Provider } from '@uiw/react-amap';
import { useMap, useMapContext, APILoader, Provider } from '@uiw/react-amap';

@@ -48,0 +48,0 @@ const Marker = () => {

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