@situm/cordova 3.15.30 → 3.15.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.semgrepignore +8 -0
- package/azure-pipelines.yml +304 -303
- package/example/.editorconfig +1 -1
- package/example/ios/App/App.xcodeproj/project.pbxproj +2 -2
- package/example/package-lock.json +1 -1
- package/package.json +1 -1
- package/plugin.xml +5 -3
- package/src/android/app/src/main/java/es/situm/plugin/PluginHelper.java +75 -2
- package/src/android/app/src/main/java/es/situm/plugin/SitumMapper.java +1 -1
- package/src/android/app/src/main/java/es/situm/plugin/SitumPlugin.java +40 -4
- package/src/android/app/src/main/java/es/situm/plugin/TextToSpeechManager.java +117 -0
- package/src/ios/Podfile +2 -2
- package/src/ios/situmcordovaplugin/SITTextToSpeechManager.h +24 -0
- package/src/ios/situmcordovaplugin/SitTextToSpeechManager.m +68 -0
- package/src/ios/situmcordovaplugin/SitumPlugin.h +1 -0
- package/src/ios/situmcordovaplugin/SitumPlugin.m +57 -1
- package/www/map-view-controller.js +23 -12
- package/www/map-view.js +11 -9
- package/www/situm.js +8 -0
package/www/map-view.js
CHANGED
|
@@ -66,16 +66,18 @@ class MapView extends HTMLElement {
|
|
|
66
66
|
connectedCallback() {
|
|
67
67
|
MapViewController._prepare(this);
|
|
68
68
|
MapViewController._getDeviceId((deviceId) => {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
69
|
+
const iframe = document.createElement('iframe');
|
|
70
|
+
iframe.setAttribute('id', 'map-view-iframe');
|
|
71
|
+
iframe.setAttribute('src', this._getViewerURL(deviceId));
|
|
72
|
+
iframe.setAttribute('width', '100%');
|
|
73
|
+
iframe.setAttribute('height', '100%');
|
|
74
|
+
iframe.style.border = 'none';
|
|
75
|
+
iframe.style.boxShadow = 'none';
|
|
76
|
+
|
|
77
|
+
this.innerHTML = '';
|
|
78
|
+
this.appendChild(iframe);
|
|
78
79
|
});
|
|
80
|
+
|
|
79
81
|
window.addEventListener('message', this._messageReceivedCallback);
|
|
80
82
|
}
|
|
81
83
|
|
package/www/situm.js
CHANGED
|
@@ -40,6 +40,14 @@ var Situm = {
|
|
|
40
40
|
internalSetEventDelegate: function (callback) {
|
|
41
41
|
_internalEventDelegate = callback;
|
|
42
42
|
},
|
|
43
|
+
/**
|
|
44
|
+
* An internal method.
|
|
45
|
+
* @param {string} message MapView message key.
|
|
46
|
+
* @param {object} payload MapView message payload.
|
|
47
|
+
*/
|
|
48
|
+
internalHandleMapViewMessage: function(message, payload) {
|
|
49
|
+
exec(() => {}, () => {}, PLUGIN_NAME, 'internalHandleMapViewMessage', [message, payload]);
|
|
50
|
+
},
|
|
43
51
|
/**
|
|
44
52
|
* Provides your API key to the Situm SDK.
|
|
45
53
|
* @description Provides your API key to the Situm SDK. This key is generated for your application in the Dashboard. Old credentials will be removed.
|