04 2011 档案
摘要:Related Javascript language features:* Object.this* Function.prototype* Function.apply(func,[args])A Class Template:1, Class Factoryvar Factory = function(C) { var F = typeof C.c === "function" ? C.c : function() {}; F.prototype = C; return F;};2, Class Constructorvar Class = Factory({ a:
阅读全文
摘要:OpenLayers不仅仅是一个地图引擎,如果愿意,你甚至可以把jQuery封装进去。使用中可能要写作自己的控件,下面是一个模板:OpenLayers.Control.YourControl = OpenLayers.Class(OpenLayers.Control, { // may private properties here ... initialize: function(options) { OpenLayers.Control.prototype.initialize.apply(this, arguments); // initialize private settings h
阅读全文
摘要:getTileURL = function(x,y,z,t) { return "http://emap"+((x+y)%4)+".mapabc.com/mapabc/maptile?v=w2.99&x="+x+"&y="+y+"&zoom="+(17-z);};
阅读全文
浙公网安备 33010602011771号