<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.17104" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=295284715-08122011>Hi Casper</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=295284715-08122011></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=295284715-08122011>This is it:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=295284715-08122011></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff><SPAN class=295284715-08122011><A
href="http://paste.ideaslabs.com/show/z8cOKJZr1X">http://paste.ideaslabs.com/show/z8cOKJZr1X</A></SPAN></FONT></DIV>
<DIV dir=ltr align=left><SPAN class=295284715-08122011><FONT face=Arial
color=#0000ff size=2> </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=295284715-08122011><FONT face=Arial
color=#0000ff size=2>I got rid of the error so no errors, but tweening is not
working. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=295284715-08122011><FONT face=Arial
color=#0000ff size=2>It's partly dependant to our own API so it'll throw some
errors if you set it up on your sandbox etc... </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=295284715-08122011><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=295284715-08122011><FONT face=Arial
color=#0000ff size=2>I'm just hoping I'm missing something very simple that you
could spot straight away...</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=295284715-08122011><FONT face=Arial
color=#0000ff size=2>I'll keep working on it.. Thanks for your help!!
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=295284715-08122011><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=295284715-08122011><FONT face=Arial
color=#0000ff size=2>Takako</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=295284715-08122011> </SPAN></DIV>
<DIV dir=ltr align=left>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><B>From:</B> Casper Span
[mailto:info@spatially-oriented.com] <BR><B>Sent:</B> 08 December 2011
15:24<BR><B>To:</B> Takako Tucker<BR><B>Cc:</B>
openlayers-users@lists.osgeo.org<BR><B>Subject:</B> Re: [OpenLayers-Users]
Tweening pinpoints<BR></FONT><BR></DIV>
<DIV></DIV>Perhaps you could share parts of your code and the error you are
getting?<BR>I think that will be more efficient then you having to recode
another example :)<BR><BR>Casper<BR><BR>
<DIV class=gmail_quote>On Thu, Dec 8, 2011 at 2:59 PM, Takako Tucker <SPAN
dir=ltr><<A
href="mailto:Takako.Tucker@bbc.co.uk">Takako.Tucker@bbc.co.uk</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><U></U>
<DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN>Hi
Casper</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2><SPAN></SPAN></FONT> </DIV>
<DIV lang=en-us dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2>Do you think you could put up an example page somewhere for moving
pinpoints? </FONT></SPAN></DIV>
<DIV lang=en-us dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2>I've put the code in, but throws an error which I'm struggling to get
rid of! </FONT></SPAN></DIV>
<DIV lang=en-us dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV lang=en-us dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2>I've been having a look at this one too <A
href="http://openlayers.org/dev/tests/manual/tween.html" target=_blank><FONT
face="Times New Roman"
size=3>http://openlayers.org/dev/tests/manual/tween.html</FONT></A><BR>but not
luck converting this into my code. </FONT></SPAN></DIV>
<DIV lang=en-us dir=ltr align=left><SPAN></SPAN> </DIV>
<DIV lang=en-us dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2>Takako</FONT></SPAN></DIV>
<DIV lang=en-us dir=ltr align=left><SPAN></SPAN> </DIV>
<DIV lang=en-us dir=ltr align=left>
<HR>
</DIV>
<DIV lang=en-us dir=ltr align=left><FONT face=Tahoma size=2>
<DIV class=im><B>From:</B> Casper Span [mailto:<A
href="mailto:info@spatially-oriented.com"
target=_blank>info@spatially-oriented.com</A>] <BR></DIV><B>Sent:</B> 07
December 2011 20:56
<DIV>
<DIV class=h5><BR><B>To:</B> Takako Tucker<BR><B>Cc:</B> Adam Eskreis; <A
href="mailto:openlayers-users@lists.osgeo.org"
target=_blank>openlayers-users@lists.osgeo.org</A><BR><B>Subject:</B> Re:
[OpenLayers-Users] Tweening pinpoints<BR></DIV></DIV></FONT><BR></DIV>
<DIV>
<DIV class=h5>
<DIV></DIV>Hi Takako,<BR><BR>In my example I wanted the map to
move.<BR>However, it should be fairly easy to adapt the code to your
liking.<BR><BR>Basically what I do is letting the tween class calculate my
path & timing, and on eachStep I move the map. On eachStep, you should
move your pinpoint with something like this: (NOTE: not
tested)<BR><BR><BR>someFunc: function() {<BR><BR>// var fromCoord = your
starting point<BR>// var toCoord = your destination point<BR>// var duration =
number of steps it should take, the more you take, the smoother the ride &
longer it will take. (unless you also change the INTERVAL constant on
Tween)<BR>var callbacks = {<BR> eachStep: tweenstep<BR>};<BR>var
tween = new
OpenLayers.Tween(OpenLayers.Easing.Quad.easeInOut);<BR>tween.start(fromCoord,
toCoord, duration, {callbacks: callbacks}<BR><BR>},<BR><BR>tweenstep: function
(value) {<BR> // TODO: move your feature to the new coord<BR> //
given in value.x and value.y<BR>},<BR><BR><BR>And another note: the tweenstep
function is being called from the tween class, so you are out of scope and
cannot see your feature. That's why, in my blogpost, I also stored the map
object into the tween. You will probably have to do something similar with
your feature.<BR><BR>If you can't get this to work, I might be able to set up
a sample somewhere. Also, you might have some luck looking at the developer
example code:<BR><A href="http://openlayers.org/dev/tests/manual/tween.html"
target=_blank>http://openlayers.org/dev/tests/manual/tween.html</A><BR><BR>regards,<BR>Casper<BR><BR>
<DIV class=gmail_quote>On Wed, Dec 7, 2011 at 6:39 PM, Takako Tucker <SPAN
dir=ltr><<A href="mailto:Takako.Tucker@bbc.co.uk"
target=_blank>Takako.Tucker@bbc.co.uk</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><U></U>
<DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>Hi, so
this is what I currently got. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2><A
href="http://paste.org/41978"
target=_blank>http://paste.org/41978</A></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>I can't
seem to see Tweening working between pinpoints... Any advise would be much
appreciated. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>The map
shouldn't move and just pinpoints should move...</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2>Takako</FONT></SPAN></DIV><BR>
<DIV lang=en-us dir=ltr align=left>
<HR>
<FONT face=Tahoma size=2>
<DIV><B>From:</B> Casper Span [mailto:<A
href="mailto:info@spatially-oriented.com"
target=_blank>info@spatially-oriented.com</A>] <BR><B>Sent:</B> 07 December
2011 10:38<BR><B>To:</B> Takako Tucker<BR></DIV><B>Cc:</B> Adam Eskreis; <A
href="mailto:openlayers-users@lists.osgeo.org"
target=_blank>openlayers-users@lists.osgeo.org</A>
<DIV>
<DIV><BR><B>Subject:</B> Re: [OpenLayers-Users] Tweening
pinpoints<BR></DIV></DIV></FONT><BR></DIV>
<DIV>
<DIV>
<DIV></DIV>I dabbled a bit with this a few weeks ago and posted a small blog
on it... Maybe it helps.<BR><A
href="http://www.spatially-oriented.com/joomla/tech/34-gis-articles/59-animated-zoom-with-openlayers"
target=_blank>http://www.spatially-oriented.com/joomla/tech/34-gis-articles/59-animated-zoom-with-openlayers</A><BR><BR><BR>
<DIV class=gmail_quote>On Wed, Dec 7, 2011 at 10:55 AM, Takako Tucker <SPAN
dir=ltr><<A href="mailto:Takako.Tucker@bbc.co.uk"
target=_blank>Takako.Tucker@bbc.co.uk</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><U></U>
<DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>Thanks
for this! I had a look at .Tween, but as it reacts to DOM elements I
couldn't be sure if it works with Lon Lat (X.Y) figure.
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>I'll
try again later on though. </FONT></SPAN></DIV><BR>
<DIV lang=en-us dir=ltr align=left>
<HR>
<FONT face=Tahoma size=2><B>From:</B> Adam Eskreis [mailto:<A
href="mailto:aeskreis@gmail.com" target=_blank>aeskreis@gmail.com</A>]
<BR><B>Sent:</B> 06 December 2011 18:03<BR><B>To:</B> Takako
Tucker<BR><B>Cc:</B> <A href="mailto:openlayers-users@lists.osgeo.org"
target=_blank>openlayers-users@lists.osgeo.org</A><BR><B>Subject:</B> Re:
[OpenLayers-Users] Tweening pinpoints<BR></FONT><BR></DIV>
<DIV>
<DIV>
<DIV></DIV>There is an OpenLayers.Tween class I believe.<BR><BR>Also, this
is something that could easily be done iwth just regular javascript.
Don't forget, OpenLayers is comprised of DOM elements, so you can
manipulate the map with regular javascript, you don't have to use an
OpenLayers construct.<BR><BR>
<DIV class=gmail_quote>On Tue, Dec 6, 2011 at 12:33 PM, Takako Tucker
<SPAN dir=ltr><<A href="mailto:Takako.Tucker@bbc.co.uk"
target=_blank>Takako.Tucker@bbc.co.uk</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><U></U>
<DIV>
<P><FONT face=Arial size=2>Hello, </FONT></P>
<P><FONT face=Arial size=2>I'm currently using
OpenLayers.Control.DragFeature to move pinpoint from one place to
another. </FONT></P>
<P><FONT face=Arial size=2>
var dragFeature = new OpenLayers.Control.DragFeature(location);</FONT>
<BR><FONT face=Arial
size=2>
map.addControl(dragFeature);</FONT> <BR><FONT face=Arial
size=2>
dragFeature.activate();</FONT> </P><BR>
<P><FONT face=Arial size=2>But not only moving pinpoints, I need to add
tween animation. </FONT></P>
<P><FONT face=Arial size=2>Has anyone done tween animation for moving
pinpoints? </FONT></P>
<P><FONT face=Arial size=2>Any advise would be much appreciated!
</FONT></P>
<P><FONT face=Arial size=2>Thanks </FONT></P>
<P><FONT face=Arial size=2>Takako</FONT> </P>
<DIV> </DIV><BR><FONT face="Times New Roman" size=3><A
href="http://www.bbc.co.uk"
target=_blank>http://www.bbc.co.uk</A><BR>This e-mail (and any
attachments) is confidential and may contain personal views which are
not the views of the BBC unless specifically stated.<BR>If you have
received it in error, please delete it from your system.<BR>Do not use,
copy or disclose the information in any way nor act in reliance on it
and notify the sender immediately.<BR>Please note that the BBC monitors
e-mails sent or received.<BR>Further communication will signify your
consent to this.</FONT>
</DIV><BR>_______________________________________________<BR>Users
mailing list<BR><A href="mailto:Users@lists.osgeo.org"
target=_blank>Users@lists.osgeo.org</A><BR><A
href="http://lists.osgeo.org/mailman/listinfo/openlayers-users"
target=_blank>http://lists.osgeo.org/mailman/listinfo/openlayers-users</A><BR><BR></BLOCKQUOTE></DIV><BR>
<DIV> </DIV><BR><FONT face="Times New Roman" size=3><A
href="http://www.bbc.co.uk" target=_blank>http://www.bbc.co.uk</A><BR>This
e-mail (and any attachments) is confidential and may contain personal
views which are not the views of the BBC unless specifically stated.<BR>If
you have received it in error, please delete it from your system.<BR>Do
not use, copy or disclose the information in any way nor act in reliance
on it and notify the sender immediately.<BR>Please note that the BBC
monitors e-mails sent or received.<BR>Further communication will signify
your consent to this.</FONT>
</DIV></DIV></DIV><BR>_______________________________________________<BR>Users
mailing list<BR><A href="mailto:Users@lists.osgeo.org"
target=_blank>Users@lists.osgeo.org</A><BR><A
href="http://lists.osgeo.org/mailman/listinfo/openlayers-users"
target=_blank>http://lists.osgeo.org/mailman/listinfo/openlayers-users</A><BR><BR></BLOCKQUOTE></DIV><BR>
<DIV> </DIV><BR><FONT face="Times New Roman" size=3><A
href="http://www.bbc.co.uk" target=_blank>http://www.bbc.co.uk</A><BR>This
e-mail (and any attachments) is confidential and may contain personal views
which are not the views of the BBC unless specifically stated.<BR>If you
have received it in error, please delete it from your system.<BR>Do not use,
copy or disclose the information in any way nor act in reliance on it and
notify the sender immediately.<BR>Please note that the BBC monitors e-mails
sent or received.<BR>Further communication will signify your consent to
this.</FONT>
<DIV> </DIV><BR><FONT face="Times New Roman" size=3><A
href="http://www.bbc.co.uk" target=_blank>http://www.bbc.co.uk</A><BR>This
e-mail (and any attachments) is confidential and may contain personal views
which are not the views of the BBC unless specifically stated.<BR>If you
have received it in error, please delete it from your system.<BR>Do not use,
copy or disclose the information in any way nor act in reliance on it and
notify the sender immediately.<BR>Please note that the BBC monitors e-mails
sent or received.<BR>Further communication will signify your consent to
this.</FONT> </DIV></DIV></DIV></BLOCKQUOTE></DIV><BR>
<DIV> </DIV><BR><FONT face="Times New Roman" size=3><A
href="http://www.bbc.co.uk" target=_blank>http://www.bbc.co.uk</A><BR>This
e-mail (and any attachments) is confidential and may contain personal views
which are not the views of the BBC unless specifically stated.<BR>If you have
received it in error, please delete it from your system.<BR>Do not use, copy
or disclose the information in any way nor act in reliance on it and notify
the sender immediately.<BR>Please note that the BBC monitors e-mails sent or
received.<BR>Further communication will signify your consent to this.</FONT>
</DIV></DIV></DIV></BLOCKQUOTE></DIV><BR><DIV> </DIV><br/><font size="3" face="Times New Roman"><a href="http://www.bbc.co.uk">http://www.bbc.co.uk</a><br/>This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.<br/>If you have received it in error, please delete it from your system.<br/>Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.<br/>Please note that the BBC monitors e-mails sent or received.<br/>Further communication will signify your consent to this.</font>
</BODY></HTML>