egovamap 0.35.62 → 0.35.63

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.
@@ -161,13 +161,17 @@ var egovaBI = function (globeMap, gisMap, mapType) {
161
161
  if (options.textStyle.enableClassify) {
162
162
  const customScheme = options.textStyle.customScheme;
163
163
  const classField = options.textStyle.classField;
164
+ let fieldValue = p[classField];
165
+ if ((p.attributes || p.properties) && !fieldValue) {
166
+ fieldValue = p.attributes?p.attributes[classField]:p.properties[classField];
167
+ }
164
168
  if (
165
- p[classField] &&
169
+ fieldValue &&
166
170
  Object.prototype.toString.call(customScheme) == "[object Array]" &&
167
171
  customScheme.length
168
172
  ) {
169
173
  customScheme.forEach((scheme) => {
170
- if (scheme.type == p[classField]) {
174
+ if (scheme.type == fieldValue ) {
171
175
  scheme.imageUrl && (p.symbolUrl = scheme.imageUrl);
172
176
  }
173
177
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.35.62",
3
+ "version": "0.35.63",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {