I am a meteorologist. I use Photoshop to help annotate maps. One thing I always wanted to do, but couldn't, was draw weather fronts.

Recently I've come across some javascript used by leafletjs to draw fronts. Does any of what I've seen get me closer to being able to draw a front with a path? I know Photoshop understands javascript, but not much more.

This is very esoteric. There are few of you who can help. Thanks in advance.

Website example from National Weather Service

Sample of the code I think describes how to draw a front.

  • 2
    Just out of curiosity why dont you use illustrator, it can do this trivially out fo the box and the results are better.
    – joojaa
    Feb 16, 2018 at 8:12
  • It looks like your sample JS is meant for an extension of Leaflet (github.com/bbecquet/Leaflet.PolylineDecorator), which has nothing to do with Photoshop.
    – Jongware
    Feb 16, 2018 at 14:59

1 Answer 1


No this script snippet does nothing for photoshop, atleast its impossible to say anything without knowing what the functions do. Not all javascript is geared to work with Photoshop API so something meant to work in a browser does not work in phostoshop.

On the otherhand Illustrator is far more suitable for this task and can do this all out of the box, no need to do any scripting. (it is also generally more suitable to make maps)

enter image description here

Image 1: Illustrator knows how to do this directly. Right tool for the right job.

  • Thanks for the suggestion. I don't want to bite the hand that tried to feed me, but cold fronts are blue, warm fronts are red. Fronts move in the direction of the bars/pips and close to no fronts north of the equator move from the east. The fronts look great otherwise.
    – Geoff Fox
    Feb 18, 2018 at 1:16
  • 1
    No worries its just a test
    – joojaa
    Feb 18, 2018 at 9:30
  • would you be able to upload these brushes for our use? I've got illustrator because i'd like to draw these lines, but I it would be a headache of work learning how to use it just to access these brushes. Nov 14, 2018 at 3:03
  • @WilliamSkea Well it took me about a minute each to make them. I didnt see it as very important to store them, sorry. If you ask a question im sure somebody answers on how to do them. Teach a man to fish and all that.
    – joojaa
    Nov 14, 2018 at 15:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.