[OpenLayers-Users] Dynamic display line follow line route

shane_china xiaying4415139 at 163.com
Wed Jul 22 02:11:54 EDT 2009


Here is the getBindToFn method used by above, to change the current obj who
execute the function.

	Function.prototype.getBindToFn = function(currentThis) {
		
		var t = this;
		
		return function() {
			return t.apply(currentThis, arguments);
		};
	}



Julien-Samuel Lacroix wrote:
> 
> Hi,
> 
> I don't recall to have seen any example of this before. You can probably 
> start looking here [1] for vector construction and here [2] for 
> JavaScript timing event. Start really simple with only 2 points and then 
> try to include your multiline. If you have it working at some point let 
> us know. I would be curious to see it working.
> 
> [1] http://openlayers.org/dev/examples/vector-features.html
> 
> [2] http://www.w3schools.com/js/js_timing.asp
> 
> Julien
> 
> 
> shane_china wrote:
>> Is there anyone can help me? thank you.
> 
> -- 
> Julien-Samuel Lacroix
> Mapgears
> http://www.mapgears.com/
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: http://n2.nabble.com/Dynamic-display-line-follow-line-route-tp3279524p3301417.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list