How to animated feature marker in openlayers like in google map example of bouncing marker. I'm new in openlayers so if you have a sample code much better.
You might use SVG symbols, like in this example:
or a simple moving marker:
The source files should be self-explaining.
I don't know if it is the right answer but this trick solve mine. I create a GIF (bouncing marker) then change the icon of existing marker (JPG) to GIF icon then adjust the size and offset. This my sample code.
var size = new OpenLayers.Size(w,h); // new height var offset = new OpenLayers.Pixel(-(size.w/2), -size.h); // new offset marker.setUrl("new_GIF_image_path"); //set new GIF icon path marker.icon.setSize(size); // set new size marker.icon.offset=offset; // set new offset markers.redraw(); // redraw layer markers
If you have an easy or other answer let me know.