这是我正在尝试的代码但它不起作用
class App extends Component {
state =
{
id: "OSD",
getImageURL: 'http://cdm16022.contentdm.oclc.org/utils/ajaxhelper',
osdConfig: {
setStrings: [{ name: 'Tooltips.Home', value: 'Reset' }],
defaultZoomLevel: 0,
tileSources: [
{
Image: {
xmlns: "http://schemas.microsoft.com/deepzoom/2008",
Url: "https://openseadragon.github.io/example-images/highsmith/highsmith_files/",
Format: "jpg",
Overlap: "0",
TileSize: "256",
Size: {
Height: "9221",
Width: "7026"
}
}
},
{
Image: {
xmlns: "http://schemas.microsoft.com/deepzoom/2008",
Url: "https://openseadragon.github.io/example-images/highsmith/highsmith_files/",
Format: "jpg",
Overlap: "1",
TileSize: "256",
Size: {
Height: "621",
Width: "526"
}
}
}
],
},
pages: [
{
id: 0,
},
{
id: 1,
}
],
};
render() {
return (
<div>
<Slider click={this.clickSlider} />
<div className="wrapper">
</div>
<ReactOpenSeadragon {...this.state} />
</div>
);
}
}
export default App;