You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wonder if it is possible to use (overlay) multiple pictures as the icon of a polyline in motion?
My situation is as follows: Consider I have two background images bgImage1.png and bgImage2.png and a single foreground image fgImage.png. I am now trying to overlay those images and use them as the icon of a polyline in motion. Note that I would like to change the background image on demand such that I can use for example the foreground image in combination with bgImage1.png in one place and with bgImage2.png somewhere else. In particular, I would like to avoid overlaying those images in some preprocessing step and then use the results foregroundWithBackground1.png and foregroundWithBackground2.png as the icons in the polyline in motion.
My naive starting point was to just draw two identical polylines in motion with different icons (draw background first, then foreground), such that they would overlay automatically. However, this is not a satisfactory solution because the polyline motions are (of course) not perfectly in sync.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey, thanks for this nice leaflet plugin :)
I wonder if it is possible to use (overlay) multiple pictures as the icon of a polyline in motion?
My situation is as follows: Consider I have two background images
bgImage1.png
andbgImage2.png
and a single foreground imagefgImage.png
. I am now trying to overlay those images and use them as the icon of a polyline in motion. Note that I would like to change the background image on demand such that I can use for example the foreground image in combination withbgImage1.png
in one place and withbgImage2.png
somewhere else. In particular, I would like to avoid overlaying those images in some preprocessing step and then use the resultsforegroundWithBackground1.png
andforegroundWithBackground2.png
as the icons in the polyline in motion.My naive starting point was to just draw two identical polylines in motion with different icons (draw background first, then foreground), such that they would overlay automatically. However, this is not a satisfactory solution because the polyline motions are (of course) not perfectly in sync.
Beta Was this translation helpful? Give feedback.
All reactions