Skip to content

Commit

Permalink
test(App.svelte): add label offset test & fix cypress render example2…
Browse files Browse the repository at this point in the history
… test
  • Loading branch information
vulcangz committed Jan 11, 2021
1 parent d567080 commit eb38607
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@
<p>地图展示及控件示例。</p>
<div class="row map-wrap">
<Map apiKey={apiKey} options={ baseMapConfig } withCenterMarker={ true } >
<Marker lng={116.404113} lat={39.919852} label="西雁翅楼" icon={{ path: 'PIN_DROP', opts: { anchor: { width: 10, height: 10 }, fillColor: 'green', scale: 2 } }} />
<Marker lng={116.404113} lat={39.919852} label="西雁翅楼" labelOffset={{width: 30, height: -10}}
icon={{ path: 'PIN_DROP', opts: { anchor: { width: 10, height: 10 }, fillColor: 'green', scale: 2 } }} />
<Marker lng={116.392004} lat={39.915104} label="南海" icon={{ path: 'PLACE_PIN' }} />
<Marker lng={116.408016} lat={39.91146} label="中国国家博物馆" />
<NavigationControl />
Expand Down Expand Up @@ -250,7 +251,7 @@
<p>公交路线搜索;步行规划;公交路线规划;驾车线路规划。</p>
<div class="row map-wrap">
<div class="column column-70">
<Map apiKey={apiKey} options={ baseMapConfig }>
<Map apiKey={apiKey} options={ baseMapConfig } withCenterMarker={true}>
<NavigationControl position={"top-right"} />
-->
<!--<Bus location={"北京"} keyword={"331"} autoViewport="true" panel={"d-result"}/> <!-- ok -->
Expand Down

0 comments on commit eb38607

Please sign in to comment.