开发者

Should I Use the jQuery-UI-Map Plugin?

I'm thinking about using jquery-ui-ma开发者_如何转开发p, which is a google map plugin. Are there any disadvantages to using this plugin? Will I have access to all of the methods, events, etc. that are in the regular Google Maps API? Any reasons not to use it?


All of the methods are accessible, however not through the plugin, e.g. the distance matrix is not a method in the plugin. All events in the Google API can be bound to any Google Maps object with the plugin.

Performance wise it will always be better to use the API instead of a plugin. If you are using http://code.google.com/p/jquery-ui-map/ then the overhead would be ~4kb and between 0 - 50 milliseconds if you compare adding 10000 markers with the plugin and 10000 markers with Google API. 4kB extra is not that much especially when compared to jQuery ~31KB, jQM ~20KB + ~7KB CSS, Google Maps js files (~85KB) (plus atleast ~80KB in images).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜