ymaps-touch-scroll
库在ymap中添加触摸或/和滚动描述块
安装:
npm或yarn
npm i ymaps-touch-scroll
yarn add ymaps-touch-scroll
var ymapsTouchScroll = require ( 'ymaps-touch-scroll' ) ;
// ES6
import ymapsTouchScroll from 'ymaps-touch-scroll' ;
[removed]老派
# bash
git clone [email protected]:whooehoo/ymaps-touch-scroll.git
<!-- HTML -->
< script src =" path/to/folder/ymaps-touch-scroll/dist/ymaps-touch-scroll.js " > </ script >
例:
function mapInit ( ) {
var map = new ymaps . Map ( 'map' , {
center : [ 55.76 , 37
评论0
最新资源