You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/06/29 05:46:53 UTC
[GitHub] [echarts] shareeftabakhi opened a new issue, #17291: [Bug] Cannot read properties of undefined (reading 'regions') -- GeoCreator.getFilledRegions
shareeftabakhi opened a new issue, #17291:
URL: https://github.com/apache/echarts/issues/17291
### Version
5.3.2
### Link to Minimal Reproduction
_No response_
### Steps to Reproduce
-Create a Geo Map
-Display it
ChartOptions: any = {
// backgroundColor: '#000',
title: {
text: '',
left: 'center',
textStyle: {
color: '#2a333d'
}
},
geo: {
map: 'world',
roam: true,
label: {
emphasis: {
show: false,
}
},
silent: true,
itemStyle: {
normal: {
borderColor: '#111'
},
emphasis: {
areaColor: '#2a333d'
},
},
},
series: [
{
type: 'scatter',
progressive: 1e6,
coordinateSystem: 'geo',
symbolSize: '15',
zoomScale: 0.222,
blendMode: 'source-over',
large: true,
postEffect: {
enable: true
},
dimensions: ['lng', 'lat'],
silent: true,
data: []
}
],
};
this.client.get("/assets/worldmap.json").subscribe((data: any) => {
var worldMap = echarts.getMap('world');
if (worldMap == null) {
echarts.registerMap('world', data);
}
this.LoadData();
});
-In load Data
this.ChartOptions.series[0].data.push(item);
if (this.ChartInstance) {
this.ChartInstance.setOption(this.ChartOptions);
}
-Html
<div echarts [options]="ChartOptions" [theme]="Theme" class="chart" *ngIf="ChartOptions" style="height:100%; width:100%" (chartInit)="OnChartInit($event)"></div>
### Current Behavior
A console error appears and the map does not whereas it was working fine for almost a year and suddenly stopped
![image](https://user-images.githubusercontent.com/108349035/176360796-58562a29-01b2-4a83-8903-43fe52800472.png)
### Expected Behavior
the map to appear
### Environment
```markdown
- OS: Windows
- Browser: Chrome
- Framework:Angular
```
### Any additional comments?
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] aryang23 commented on issue #17291: [Bug] Cannot read properties of undefined (reading 'regions') -- GeoCreator.getFilledRegions
Posted by "aryang23 (via GitHub)" <gi...@apache.org>.
aryang23 commented on issue #17291:
URL: https://github.com/apache/echarts/issues/17291#issuecomment-1614374543
How you then used it?
@MohammedAlSafwan @librabyte
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] helgasoft commented on issue #17291: [Bug] Cannot read properties of undefined (reading 'regions') -- GeoCreator.getFilledRegions
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #17291:
URL: https://github.com/apache/echarts/issues/17291#issuecomment-1530328409
@MohammedAlSafwan, file _/assets/worldmap.json_ does not exist anymore.
[Here is how](https://echarts.apache.org/examples/en/editor.html?c=map-HK&code=LYTwwgFghgTgLgOgM4QPYHcAyqoBMCWAdgOYAUAlANwBQAJAsQKZynUAEbA5BHHAA5IAXAHphAY1yEEAKyS5GAG3wA3GAkLNhxCMKh8oYiI2GNDsOEgC06GwAFgUJHEYxdSJJod9hs1IWHoqDAKuDJIfpwANOxsAGYAroRicPh-bKRMqABS4YTkbADeMRygkOYIEPjy2HhEZFTFbKbQ8EgIMIzE-E4uALJ6pJyBwbhRbJk5fg2NqHwpaQC8hY0cogBGBgDWxDCoibhgqApBglwAxAAMV1ErbClwCoynRRyvr84AHnCnnDdvb49Yt8uGJGIRnDA_v8OJ84ABlOAgR7PW5vMRHE7nABMUAAzPjRqi2ABfW7E6LQzIo6ElPQ_YYhKHQ3ZQYCnOAweKMCk0hRQNaKak0jiMYB8aBIbpC4UcFAYU6xKAKDxEjik4XkokAL1QqDZbCxPOhkse4PZnO5RPwzmACKRT2WMrYhCCDgU0playC8hgh2OMB-ZwAjCHOKqSUaaaLxY4pY6nWxYIwoH7MZwzjj8bjCU71TS829NcaXPhGEI2ABtIkvGWIvgOzhIMRQXguJk0vi7HZlyXKB1BxgANkj0PR3qILcYcJAPX1nEy7eNIGAXoUcPwWobQYArIv_jq9XDm8i2BcEFiLyP_mtTbheqh5D9wvEYKDLKg-5CrwDYExzVzv1ePhUCcABRWJYlMYEaydMF-RPDkuXDIsZQIYAwUlPxywrTgFBIMZcJbTgAF1ANlfBTWBRDLSdXAWygU4KwrLEEFxLEAE5t0iNgABYAA4EE4zjiOIokC1eUTCxoN5ShaRAPDgAB5OZUkIUhZnmPJpJJagqCAA) to use the geoJson world file with your code.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] librabyte commented on issue #17291: [Bug] Cannot read properties of undefined (reading 'regions') -- GeoCreator.getFilledRegions
Posted by GitBox <gi...@apache.org>.
librabyte commented on issue #17291:
URL: https://github.com/apache/echarts/issues/17291#issuecomment-1374479726
Meet the same problem on version v5.4.1. You can see the demo here https://codepen.io/librabyte/pen/dyjNPXW.
Any suggestion would be appreciated, thanks for your efforts on this awesome project!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] librabyte commented on issue #17291: [Bug] Cannot read properties of undefined (reading 'regions') -- GeoCreator.getFilledRegions
Posted by GitBox <gi...@apache.org>.
librabyte commented on issue #17291:
URL: https://github.com/apache/echarts/issues/17291#issuecomment-1374484165
After reading docs from Echarts https://echarts.apache.org/handbook/en/basics/release-note/v5-upgrade-guide/#built-in-geojson-removed, here is the explain:
> Built-in GeoJSON Removed
v5 removes the built-in geoJSON (previously in the echarts/map folder). These geoJSON files were always sourced from third parties. If users still need them, they can go get them from the old version, or find more appropriate data and register it with ECharts via the registerMap interface.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] MohammedAlSafwan commented on issue #17291: [Bug] Cannot read properties of undefined (reading 'regions') -- GeoCreator.getFilledRegions
Posted by "MohammedAlSafwan (via GitHub)" <gi...@apache.org>.
MohammedAlSafwan commented on issue #17291:
URL: https://github.com/apache/echarts/issues/17291#issuecomment-1528488227
@librabyte what was the fix exactly?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] librabyte commented on issue #17291: [Bug] Cannot read properties of undefined (reading 'regions') -- GeoCreator.getFilledRegions
Posted by GitBox <gi...@apache.org>.
librabyte commented on issue #17291:
URL: https://github.com/apache/echarts/issues/17291#issuecomment-1374496356
fix example: https://codepen.io/librabyte/pen/yLqgydO
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org