Some questions. Are background and backgroundCoord general properties for the geo component? Can they be used with mapType property? And if background image has SVG image source, will the node information in SVG been parsed and displayed?
SHUANG SU <[email protected]> 于2018年4月29日周日 上午12:29写道: > Pissang and All, > > > Currently, geo coordinate system only supports GeoJson, which is not > convenient in some scenario that the base map might be the shopping mall > map, airport map, airplane seat map, topographic map, etc., where using > image or SVG is an easy and conventional way. > > So, should we provide "echarts option" like the snippet below for this > feature? > > > ```js > var option = { > geo: { > > // Use as background image, which can be zoomed and moving in the > geo coordSys. > background: 'shopping-mall.png', // or 'shopping-mall.svg' > > // Specify how the background is located in this geo. > // Essentially the value is geo coords of the background rect. > the image width/height, where the geo > backgroundCoord: { > x: 0, > y: 0, > // Conventionally, we can use the image size as the geo coords > here. > width: 1000, > height: 600 > }, > > // In this case, we do not need to provide a GeoJSON and spcify > "mapType" here. > > }, > ... > }; > ``` > > In fact, this feature (using a roamable background image on geo) can be > implemented > by the "custom series", but it is not convenient (after all, it require > users to provide a GeoJSON to specify the bounding rect). > > Or any other ideas? > > > ---------------------------- > Su Shuang (100pah) > ---------------------------- > -- Yi Shen Senior Developer Baidu, Inc.
