@vis.gl/react-google-maps
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "@vis.gl/react-google-maps", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "React components and hooks for the Google Maps JavaScript API", | ||
@@ -5,0 +5,0 @@ "source": "src/index.ts", |
@@ -140,6 +140,11 @@ import {Ref, useEffect, useRef, useState} from 'react'; | ||
container.appendChild(mapDiv); | ||
map = new google.maps.Map(mapDiv, { | ||
...mapOptions, | ||
renderingType: renderingType as google.maps.RenderingType, | ||
colorScheme: colorScheme as google.maps.ColorScheme | ||
...(renderingType | ||
? {renderingType: renderingType as google.maps.RenderingType} | ||
: {}), | ||
...(colorScheme | ||
? {colorScheme: colorScheme as google.maps.ColorScheme} | ||
: {}) | ||
}); | ||
@@ -146,0 +151,0 @@ } |
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 too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
568145
7648