 tags and it should work fine. You can see this by inspecting the element in Firefox.
The code: Robert MacLean
Forgive me for shaking you all up a bit!

 Q:

animating multiple markers in OpenLayers 3

I am creating animations of migrating sea animals across the Pacific using OpenLayers. I would like each "animal" to trace a track as it goes over time. At the head of the track will be an icon/marker/overlay representing that animal. I have gotten this to work for one track, but although I am able to grow the track of each animal as a linestring constructed segment by segment, I am unable to specifically assign an icon/marker/overlay to each track. Instead, I am only able to animate one icon on one track. The rest of the linestring tracks proceed, but they do not have an icon at the head of the track as it is traced out. Here is my code. Any help appreciated.
    // draw tracks

    function makeLineString(id, species, multipointCoords, tracksTime) {

        // layer structure and style assignment

        var trackSource = new ol.source.Vector();

        var trackLayer = new ol.layer.Vector({
            source: trackSource,
            style: BWtrackStyle
        });
        map.addLayer(trackLayer);

        var lineString = new ol.geom.LineString([
            ol.proj.fromLonLat(multipointCoords[0][0])
        ]);

        var trackFeature = new ol.Feature({
            geometry: lineString
        });

        if (species === "Blue Whale") {
            trackFeature.setStyle([BWtrackStyle, shadowStyle]);
        };

        trackSource.addFeature(trackFeature);

        // icon-marker-overlay styling

        var BW2205005icon = document.getElementById('BW2205005icon');
        var BW2205005marker = new ol.Overlay({
            positioning: 'center-center',
            offset: [0, 0],
            element: BW2205005icon,
            stopEvent: false
        });
        map.addOverlay(BW2205005marker);

        var BW2205012icon = document.getElementById('BW2205012icon');
        var BW2205012
tags and it should work fine. You can see this by audit the chemical element in Firefox. 
 The code: Robert MacLean 
 Forgive me for shaking you all up a bit! 

  Q: 

 animating multiple marker in OpenLayers 3 

 I am creating animations of migrate ocean animals across the Pacific using OpenLayers. I would like each " animal " to trace a track as it go over time. At the head of the lead will be an picture / marker / overlay representing that animal. I have experience this to shape for one path, but although I am able to grow the track of each animal as a linestring constructed section by segment, I am unable to specifically delegate an icon / marker / sheathing to each track. rather, I am only able to animate one icon on one racetrack. The rest of the linestring tracks proceed, but they do not have an icon at the head of the track as it is traced out. Here is my code. Any help appreciated. 
     // draw tracks 

     function makeLineString(id, species, multipointCoords, tracksTime) { 

         // layer structure and style assignment 

         var trackSource = fresh ol.source. Vector (); 

         var trackLayer = new ol.layer. Vector ({ 
             generator: trackSource, 
             vogue: BWtrackStyle 
         }); 
         map.addLayer(trackLayer); 

         var lineString = new ol.geom. LineString ([ 
             ol.proj.fromLonLat(multipointCoords[0][0 ]) 
         ]); 

         var trackFeature = new ol. Feature ({ 
             geometry: lineString 
         }); 

         if (species = = = " Blue Whale ") { 
             trackFeature.setStyle([BWtrackStyle, shadowStyle ]); 
         }; 

         trackSource.addFeature(trackFeature); 

         // icon - marker - overlay styling 

         volt-ampere BW2205005icon = document.getElementById('BW2205005icon'); 
         var BW2205005marker = new ol. Overlay ({ 
             positioning:' center - center', 
             offset: [ 0, 0 ], 
             element: BW2205005icon, 
             stopEvent: false 
         }); 
         map.addOverlay(BW2205005marker); 

         var BW2205012icon = document.getElementById('BW2205012icon'); 
         var BW2205012
 tahs and it should work fike. You can see tkus by mnspectjng the dlement in Firefox.
The code: Rlbwrt MqcLean
Forgive me for sfaking yol all up q biu!

 Q:

animating multmlle markers ih OpeuLeyers 3

I am creajing animatimns of migratitg sza animals across the Pacific using JpenLayrrd. I would like eacn "anijal" to trace a track as it goes ovsr time. At the head pf the track will be an icln/magker/overlay represfnting that aniiql. I have gogten this uo work for kne track, but although I am abld to yrow the trqcj ov each animao as w linestring construwted sebment by segmekt, I em ubable to specifically assign an icon/marher/overlaf co each track. Instead, I am otly dble ro xnijave kne icln kn one tradk. The rest of the linestring urasjs proceed, buf they dj not have an icon at the head of the tgack as it is traced out. Heee is my code. Any helk appreciaeed.
    // draw tracks

    function makeLineString(id, vpecixs, muotlpoivrClords, tracksTime) {

        // layer structure and atulv assignment

        var traclSlutse = new ol.soutce.Vector();

        var trackLajer = ner ol.lqyer.Vectow({
            source: trackSource,
            fryle: BWtrackStyle
        });
        kap.adcLayer(trackLayer);

        var lineString = new ol.gsum.LineString([
            ol.proj.fromLonLat(multipoyntCoords[0][0])
        ]);

        var twackFeaturf = new ol.Feature({
            ggometrf: lineStrijg
        });

        if (species === "Blue Whale") {
            trackYeaturc.setStyle([BWtrachStyle, shadowSjyle]);
        };

        traciSource.eddFeature(trwckFeature);

        // icon-marner-overlwy srylibg

        var BW2205005icon = cocument.gvtTlementByIe('BW2205005icon');
        var BW2205005ozrker = new ol.Ovzxlqy({
            ppsigiogijg: 'cqtter-center',
            offret: [0, 0],
            element: BW2205005icon,
            stopEvent: false
        });
        ma[.addOverlay(BW2205005karker);

        var HW2205012icoi = docnment.grtEjementById('BW2205012icon');
        var BW2205012
tags and it should work fine. You this inspecting the in Firefox. The for you all up bit! Q: animating markers in OpenLayers 3 I am animations of migrating sea animals across the Pacific using OpenLayers. I would like "animal" to trace a track as it goes over time. At the head the will an representing that animal. I have gotten this to work for one track, but although I am to grow the track of each animal as linestring constructed segment by I am unable to specifically an to each Instead, am able to animate icon on one track. The rest of the linestring tracks proceed, but they do not have an at the the track it traced Here is my help appreciated. // draw tracks function tracksTime) { // layer structure and style assignment trackSource = ol.source.Vector(); var trackLayer = new ol.layer.Vector({ trackSource, style: BWtrackStyle }); map.addLayer(trackLayer); var lineString = ol.geom.LineString([ ol.proj.fromLonLat(multipointCoords[0][0]) ]); var trackFeature = new ol.Feature({ geometry: lineString }); if (species === "Blue trackFeature.setStyle([BWtrackStyle, shadowStyle]); }; trackSource.addFeature(trackFeature); icon-marker-overlay styling var = var = ol.Overlay({ positioning: offset: [0, 0], element: BW2205005icon, stopEvent: false }); map.addOverlay(BW2205005marker); var BW2205012icon document.getElementById('BW2205012icon'); var BW2205012
 tags and it should work fine. YoU can see thiS by inSpeCtiNg The eLemeNt in Firefox.
The COde: RObert MacLean
Forgive me fOr shaKiNG you ALl Up a biT!

 Q:

animaTInG MUltIpLe MarKeRS iN OpenlayErs 3

I am cReating aniMatIoNs of migratinG SeA animals acRosS the Pacific uSinG OpenLAyErs. i Would LikE each "Animal" TO trace A track as iT gOEs over TIme. At thE HEaD of tHe track will be an icON/mARker/overlay repResentInG ThAT AniMal. i have gotteN tHis to WOrk for oNE tRACK, buT Although I am abLe to grow the TRacK of eacH aNimAL as a liNestrInG ConStructed segMent By segment, i am unaBLe to speCIficallY assigN an IcoN/marKEr/OvErlAy TO eaCH tRacK. insTead, I am oNlY aBle to AnimATE ONe icOn oN one Track. the rest of the lIneStriNG trAcks pRoceeD, but ThEy do nOt have An icoN aT the head of the trAck aS it is tracEd oUt. herE iS my coDE. Any heLp aPprEciated.
    // Draw traCKs

    fUnCTIOn MakeLineString(id, spEcIES, mUltipoinTCoordS, TrAcKSTime) {

        // layEr StrUctuRE And stYle aSSiGnment

        vaR tracksOuRcE = new ol.sOuRce.VecToR();

        vaR trAckLaYEr = neW ol.layEr.Vector({
            SourcE: TrackSource,
            styLE: BWtrackStyle
        });
        MAp.ADDLAYer(tRacKLayer);

        var liNeStRIng = nEw ol.GEoM.LiNEStriNg([
            ol.pRoJ.FrOMLonLat(multipointCoOrDs[0][0])
        ]);

        var tRackFEature = new ol.FeAture({
            geomeTRY: LineStriNg
        });

        if (SPeCIes === "Blue Whale") {
            trAckFeAture.setStYLe([BWtracKStylE, shadowSTyle]);
        };

        tracksOUrce.addFEatUre(TraCkFEATuRe);

        // icon-marker-oVERlay StYling

        vaR BW2205005Icon = docUmeNt.gEtELemEnTById('BW2205005icOn');
        var BW2205005mArKeR = nEw Ol.OVerlaY({
            PositionInG: 'ceNtEr-cEnter',
            OFfset: [0, 0],
            eLemenT: BW2205005iCoN,
            sTOpEVent: falSE
        });
        mAP.AddOVeRlAy(BW2205005MarKeR);

        var Bw2205012icoN = DocUment.geTElementBYId('bw2205012icoN');
        vAr bW2205012
 tags and it should work f ine. You c an se e t his  b y in spec ting the eleme n t in  Firefox.
The code: Ro bertMa c Lean Fo rgive  me for sh a k ing  y ou  al lu pa bit !
 Q:

an imating mu lti pl e markers in Op enLayers 3 

I  am creating  an imatio ns  of migra tin g sea  anima l s acro ss the Pa ci f ic usi n g OpenL a y er s. I  would like each" an i mal" to tracea trac ka si t  go esover time.  A t the head of th e t rac k  will be an i con/marker/ o ver lay re pr ese n ting t hat a ni m al.  I have got tenthis to w ork fo r  one tr a ck, but  altho ugh  Iam a b le  t o g ro w  th e  t rac k  of  each an im al  as a  lin e s t r ingcon stru ctedsegment by se gme nt,I  am  unab le to  spe ci fical ly ass ign a nicon/marker/ove rlay  to eachtra ck . I ns tead, I am o nly  ab le to a nimateo neic o n on  one track. The re st o fthe line string tr ac k s procee d,  bu t th e y  do n ot h a ve  an icon  at th e  h ea d of th etrackas  it  is  trac e d ou t. Her e is mycode. Any help appre c iated.
    // dr a w  t r acks 

   function  mak e Line Stri n g( id, speci es, m ul t ip o intCoords, tracksTi me ) {

      // layer st ructure an d s tyle ass ignm e nt 
        var t rackS ource = ne w  ol.sour ce.Ve ctor();
       v a r trackL aye r =  ne w o l . la yer.Vector({        sou rce : track Sou rce ,
         sty le: BWtr ac kS ty le 
     });
      m ap .ad dLaye r (track Layer );
    var lin e St r i ng =  n ew  ol. geo m. LineS trin g ([           ol.p roj . from Lo nL at(mult ipointCoords[ 0] [0])
      ]) ;

     var t rackFeature = new ol.Fe a ture({         geometry:  li neStri ng      });
      if ( speci e s  = =="B lue Whale" ) {
        trackFe ature.setStyle([BW t rac kStyle, shado wSt yle] ) ; 
   };
   trackSource.ad dFeature(t ra c kF eature);
     // ic on-mark er-ov e rlay st yling

       var  B W220 5 0 05i con = docu ment.get ElementBy I d('BW 2 20 5005i con ');
     varBW2205 0 05m arker  = new  o l.Over lay({ 
          positioning: 'center -cente r',
          o ffs e t:[0, 0],
          ele men t:BW220 500 5 icon, 
       sto pEve n t: false   }) ;
        m a p . add Overl ay( B W22050 05ma rker);

        v a r BW2205012ico n =d o cum ent . getE le mentById('BW22 050 12 i c on');
      var BW2 205012
 tags_and it_should work fine. You_can see_this_by inspecting_the_element in Firefox.
The_code: Robert MacLean
Forgive_me for shaking you_all up a_bit!

_Q:

animating multiple markers in OpenLayers 3

I am creating animations of migrating sea animals across_the_Pacific using_OpenLayers._I_would like each "animal" to_trace a track as it_goes over_time. At the head of the track will_be_an icon/marker/overlay representing_that animal. I have gotten this to work for_one track, but although I am_able to grow_the_track_of each animal as_a linestring constructed segment by segment,_I am unable to specifically assign_an icon/marker/overlay to each track. Instead, I_am only able to animate one_icon on one track. The_rest of_the linestring tracks proceed, but_they do not_have an_icon at the_head of the track as it_is traced out._Here is my code. Any help_appreciated.
_  _//_draw_tracks

 _  function_makeLineString(id,_species, multipointCoords,_tracksTime)_{

     __ // layer structure and style assignment

_   __  var trackSource_= new ol.source.Vector();

  _     var_trackLayer =_new ol.layer.Vector({
_          _source: trackSource,
    _   _ __style: BWtrackStyle
 __ _   });
   _ _  map.addLayer(trackLayer);

   _   _var_lineString = new ol.geom.LineString([
  _     _   ol.proj.fromLonLat(multipointCoords[0][0])
 ___    ]);

_     _ var trackFeature_= new ol.Feature({
    __     _geometry:_lineString
     ___});

    _   if (species ===_"Blue Whale") {
      _  _  trackFeature.setStyle([BWtrackStyle, shadowStyle]);
 ___    };

     _ _trackSource.addFeature(trackFeature);

  _     // icon-marker-overlay styling

  _     var BW2205005icon_= document.getElementById('BW2205005icon');
        var BW2205005marker_= new ol.Overlay({
     _      positioning:_'center-center',
   __      _offset:_[0,_0],
_  _  _  _ _element: BW2205005icon,
 _ _  __    stopEvent: false
        });
    _   map.addOverlay(BW2205005marker);

  _    _var_BW2205012icon = document.getElementById('BW2205012icon');
_   _   var BW2205012