Migration from v7 to v8¶
Requisites¶
Update your pointrwebsdk.js and pointr.css to v8
<link href="https://pointr.blob.core.windows.net/websdk/8.0.0/css/pointr.css" rel="stylesheet" />
<script type="text/javascript" src="https://pointr.blob.core.windows.net/websdk/8.0.0/pointrwebsdk.js"></script>
Options¶
Instead of apiToken and apiDevice, clientInternalIdentifier and clientSecret are required in options.
apiUrl: "https://API_URL",
clientInternalIdentifier: "CLIENT_INTERNAL_IDENTIFIER",
clientSecret: "CLIENT_SECRET",
Structure of POI Object¶
Structure of POI object changed from:
{
buildingInternalIdentifier:
siteInternalIdentifier:
translations: {}
geometry: {}
properties: {
centroid: {}
description: ""
iconUrl: ""
imageUrl: ""
internalIdentifier: ""
keywords: ""
levelIndex:
maxZoomLevel: ""
minZoomLevel: ""
searchDescription: ""
searchKeywords: ""
searchName: ""
title: ""
translations: {}
type: ""
typeCode: ""
voicekeywords: ""
}
}
{
geometry: {}
properties: {
sid: 1,
bid: 1,
fid: "",
lvl: 1,
name: "",
typeCode: "",
searchDescription: "",
searchName: "",
style: {},
extra: {}
}
}
Properties of Level Object¶
SDK v7 | SDK v8 |
---|---|
level.title | level.levelShortTitle |
level.description | level.levelLongtitle |
level.levelIndex | level.levelIndex |
Last update: June 4, 2024