We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
init() { const scene = new Scene({ id: 'map', map: new GaodeMap({ center: [106.230909, 38.487193], style: 'dark', pitch: 30, zoom: 5, minZoom: 3, maxZoom: 10 }) }) scene.on('loaded', () => { const layer = new ProvinceLayer(scene, { joinBy: ['code'], adcode: ['640000'], depth: 2, simplifyTolerance: 0.01, label: { field: 'NAME_CHN', textAllowOverlap: false }, fill: { activeColor: '#000811' }, stroke: '#000811', popup: { enable: true, Html: props => { return `<span>${props.NAME_CHN}</span>` } } }) layer.fillLayer.on('click', e => { console.log(e) }) }) }
如何使用点击事件~并获得点击区域的acode
@thinkingGIS 麻烦您抽时间,帮忙看下
The text was updated successfully, but these errors were encountered:
layer.on('loaded', () => { layer.fillLayer.on('click', e => { console.log(e) }) })
已解决,参考drillDown.ts
Sorry, something went wrong.
请问如何修改new ProvinceLayer配置项里的depth? 目前遇到直辖市和非直辖市要动态切换,四个直辖市不能直接显示下面的区
No branches or pull requests
Mini Showcase
如何使用点击事件~并获得点击区域的acode
@thinkingGIS 麻烦您抽时间,帮忙看下
The text was updated successfully, but these errors were encountered: