Skip to content

Commit b0c2518

Browse files
mdd-fix-custom-imagery-navigation (#962)
mdd-fix-custom-imagery-navigation
1 parent bfb8d50 commit b0c2518

File tree

1 file changed

+6
-1
lines changed
  • samples/maps/geo-map/display-custom-imagery/src

1 file changed

+6
-1
lines changed

samples/maps/geo-map/display-custom-imagery/src/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ export default class MapDisplayCustomImagery extends React.Component<any, any> {
1616
this.onMapRef = this.onMapRef.bind(this);
1717
}
1818

19-
public onMapRef(geoMap: IgrGeographicMap) {
19+
public onMapRef(geoMap: IgrGeographicMap | null) {
20+
21+
if (!geoMap) {
22+
return;
23+
}
24+
2025
// website hosting imagery tiles
2126
const imageryProvider = "https://api.mapbox.com/styles/v1/mapbox/streets-v11";
2227
// most imagery tiles are provided using deep-zoom format, where 256 is tile size and Z iz zoom level, X is row tile and Y is column tile

0 commit comments

Comments
 (0)