您的位置: 新闻频道 AJAX新闻

原创新闻 jmaps - 方便地调用Google Map 发布2.0 alpha版本

2007-11-19 by 主编 JavaEye管理员
评论(1) 有885人浏览 google map jquery
jmaps是一个基于jquery的插件,能够极端地简化Google Map调用,今天发布了新的2.0 alpha版本
调用的api如下:
 $('#div').jmap(options, callback);


默认的options有如下参数:
$.jmap.defaults = {
        // Initial type of map to display
        // Options: "map", "sat", "hybrid"
        mapType: "map",
        // Initial map center
        mapCenter: [55.958858,-3.162302],
        // Initial map size
        mapDimensions: [400, 400],
        // Initial zoom level
        mapZoom: 12,
        // Initial map control size
        // Options: "large", "small", "none"
        mapControlSize: "small",
        // Initialise type of map control
        mapShowType: true,
        // Initialise small map overview
        mapShowOverview: true,
        // Enable map dragging when left button held down
        mapEnableDragging: true,
        // Enable zooming with scroll wheel
        mapEnableScrollZoom: false,
        // Enable smooth zoom
        mapSmoothZoom: true,
        // Enable Google Bar
        mapEnableGoogleBar: false
    }


如果你的应用需要用到Google Map,那么来试试看jmaps吧,真是太简洁了!

评论 共 1 条 发表评论

garyt 2007-11-20 08:54 引用
呵呵,真是个好东西

发表评论

您还没有登录,请登录后发表评论