Back to the blog
    Nov 2026·11 min read

    How to animate a route on a map in After Effects (no plugins)

    You don't need plugins to animate a route on a map in After Effects: draw the path with the Pen tool on a shape layer, add Trim Paths and animate End from 0% to 100%. Here is the whole process, from picking a map you can legally use to the pin that follows the line, the camera that follows it and the mistakes that keep the route from showing.

    Cristhian ProañoBy Cristhian Proaño · Real estate content creator
    How to animate a route on a map in After Effects (no plugins)

    Quick version: the route in 6 steps

    1. Import the map and create a composition the same size as your video (for example, 1920 × 1080).
    2. Deselect all layers (F2) and draw the route with the Pen tool (G): no fill, colored stroke.
    3. On the shape layer, open Contents → Add → Trim Paths.
    4. Set End to 0% where the animation starts, add a keyframe and, a few seconds later, set it to 100%.
    5. Select the keyframes and press F9 so the line starts and stops smoothly.
    6. Optional: a pin that follows the route, a camera that tracks it, and the map credit on screen.

    In my real estate project videos I use this technique to show how to get to the land from the main road or from the town center. It is the same base I use to mark the route of a road over a drone shot, except here the background is a map.

    Prepare the map: which screenshots you can use

    Before opening After Effects, decide where the map comes from, because not every screenshot can be used in a video, especially one that promotes a project. This is what the official sources say (this is not legal advice; check the current terms before publishing):

    SourceCan you use it in a video?What it requires
    Google Maps (standard view)In online educational or entertainment videos, yes, without asking for permission. In ads or promotional videos, you must submit the project for approval.Attribution to Google and its data providers, visible while the map is shown. Don't significantly alter the map.
    Google Earth and Satellite viewNot for commercial or promotional purposes. Yes in educational videos, even monetized ones.On-screen attribution while the imagery is shown.
    OpenStreetMapYes, including commercial use: the data has an open license (ODbL).The credit "© OpenStreetMap contributors" on screen long enough to be read, or in the credits or description.
    Your own drone footageYes; the footage is yours.Follow your country's flight rules.
    A map you draw yourselfYes, if you draw it (even based on OSM data, credited).If you use OSM data, the same credit.

    Sources: the Google Maps and Google Earth guidelines, the OpenStreetMap copyright page and its attribution guidelines. In practice, for a video that sells land, the safest options are an OpenStreetMap map with its credit, a simplified map you draw yourself or your own drone shot.

    Two technical tips: capture the map at twice the size of your composition if you plan to zoom in with a camera (a 1920 px map scaled to 200% looks blurry), and crop out everything that is interface: buttons, search box and bars.

    Draw the route with the Pen tool

    1. Deselect everything with F2. If the map layer is selected when you use the Pen tool, After Effects creates a mask on the map instead of a shape layer, and the route cuts the map instead of drawing on top of it.
    2. Pick the Pen tool (G) and, in the toolbar, set Fill to none and Stroke to a color that contrasts with the map, 8 to 15 px wide for Full HD.
    3. Click the starting point and follow the street with clicks. Where the road turns, click and drag to create a curve. Fewer points give a cleaner line.
    4. Finish at the destination and press F2 to release the tool. The first point you drew is where the animation starts.
    5. Rename the layer (for example, "Route") with Enter. It saves confusion when you add the pin and the camera.

    To adjust a curve, grab a vertex with the Selection tool (V) and move its handles. If a point is in the wrong place, moving it is faster than redrawing.

    Animate the route with Trim Paths

    Trim Paths is a path operation for shape layers. According to Adobe's help, you animate its Start, End and Offset properties to trim a path, with a result similar to the Write-on effect.

    1. Twirl open the shape layer and, next to Contents, click Add → Trim Paths.
    2. Go to the moment the route should start (for example, second 1), set End to 0% and click the stopwatch.
    3. Move ahead 2 to 4 seconds, depending on the route length, and set End to 100%.
    4. If the route should disappear later, animate Start from 0% to 100%: the line erases from the starting point.
    5. Select all keyframes and press F9.

    Try the controls: move Start and End, play the animation with linear or eased speed, and turn on the pin and the camera to see what the next sections explain.

    0 %100 %
    Speed
    Contents → Add → Trim Paths
    End draws the route; Start erases it from the beginning. If Start and End have the same value, the route disappears.

    Offset moves the visible segment along the path without changing its length. It is useful for a short segment traveling along the route, like a light streak. And if the layer has several paths in the same group, Trim Paths can trim them simultaneously or individually, which helps when the route has several legs.

    Style the line

    • Round caps: in Contents → Shape → Stroke, set Line Cap to Round Cap. The moving tip looks cleaner.
    • Outline to separate it from the map: duplicate the Stroke inside the shape, make it wider with a dark or white color, and keep it below the main stroke.
    • Dashed line: in Stroke → Dashes add a dash and a gap. If you animate the dashes' Offset, they move like marching ants.
    • Tapered tip: the stroke's Taper group thins the start or end. Adobe recommends using pixels rather than percentage when you trim the path, so the taper doesn't change with the length.
    • Motion blur: enable it on the layer and on the composition switch; without the second one, the preview doesn't show it.
    If the dashes move backwards, flip the sign of the Offset value.

    A pin that follows the route

    After Effects can turn a path into a motion path. Adobe's help describes it like this: copy the Path property of a shape or mask and paste it into another layer's Position property.

    1. Import or draw the pin and put its anchor point at the bottom tip (Pan Behind tool, Y).
    2. On the Route layer, twirl open Contents → Shape → Path, select the word Path and choose Edit → Copy.
    3. Select the pin, press P to show Position, click the word Position, place the time indicator where the route starts and choose Edit → Paste.
    4. The pasted keyframes last 2 seconds by default and the middle ones rove in time for a constant speed. Drag the last one until it lines up with the last End keyframe.
    5. If the pin is offset from the line, move the whole motion path: shape paths use their layer's coordinates and Position uses the composition's.

    To keep the pin glued to the tip, use the same curve on both: either both linear, or both with F9 on the first and last keyframe. If it gets ahead or falls behind at some point, fix it in the Graph Editor. If the pin is an arrow or a car, use Layer → Transform → Auto-Orient (Ctrl + Alt + O) → Orient Along Path so it turns with the curves.

    A camera that follows the route

    When the route is long, viewers understand it better if the image zooms in and follows the tip of the line. There are two ways without plugins:

    • With a null object (the simplest): create one with Layer → New → Null Object, parent the map, the route and the pin to it, and animate the null's Position and Scale. Everything moves together and the route never slides off the map.
    • With a camera: make the map, the route and the pin 3D layers, create a camera with Layer → New → Camera and animate its position. Useful if you want to tilt the map in perspective; for a flat move, the null is easier to control.

    In both cases, animate the camera with fewer keyframes than the route: if the image chases every curve, it makes people dizzy. A zoom in at the start, a smooth move toward the destination and a slight zoom out at the end are usually enough.

    Speed curves: so it doesn't look mechanical

    With linear keyframes, the line shoots off and stops abruptly. These shortcuts (checked against Adobe's shortcut list) change that:

    ShortcutWhat it doesWhen I use it
    F9Easy Ease: eases in and out of the keyframe.Almost always, on End and on the camera.
    Shift + F9Easy Ease In: eases only the arrival.On the last keyframe, so the route slows down as it reaches the land.
    Ctrl + Shift + F9Easy Ease Out: eases only the departure.On the first one, if the route should start slowly.
    Ctrl + Shift + KOpens Keyframe Velocity to type the influence.When I want a longer slowdown than F9 gives.
    Shift + F3Toggles between layer bar mode and the Graph Editor.To see and adjust the speed curve by hand.
    Same distance, same time: easing starts and stops slowly.

    In the Graph Editor, a high curve in the middle means the line runs fast in the central part of the route. If there is a stretch you want to show calmly (the arrival at the project, for example), increase the influence of the last keyframe.

    The route over drone footage

    If instead of a map you have an aerial shot of the road, the line has to move with the drone's camera. The process changes in one step: first you track the shot with the 3D Camera Tracker, create a solid anchored to the road and draw the route inside that precomp. Trim Paths is animated the same way.

    End draws the route; Start trims it away. With all keyframes selected, press F9.

    It is explained step by step, with video, in the tutorial on how to mark the route of a street or road in After Effects. For the track to work, the shot has to be filmed well: see how to film with a drone so the camera tracker works and, if a warning appears, the 3D Camera Tracker errors and how to fix them.

    Route not showing: common mistakes and fixes

    • Start and End have the same value. If both are at 0% (or 100%), there is no visible segment. Check which frame you are on: before the first keyframe, End is 0%.
    • You drew a mask, not a shape. If the map was selected, the Pen tool created a mask on the map. Delete it, press F2 and draw again.
    • The route has fill, not stroke. An open path with fill and no stroke is barely visible. Make sure Stroke is on and wider than 0.
    • The route layer is below the map. In the timeline, the route and the pin go above the map.
    • The route draws from the destination. Trim Paths starts at the path's first vertex. If you drew it backwards, animate Start from 100% to 0% instead of End, or redraw from the starting point.
    • Only one segment is trimmed. If the shape has several paths, check that Trim Paths is in the same group and whether it trims simultaneously or individually.
    • The pin's motion path is not showing. Go to View → View Options and turn on Motion Paths; also, the Position property must be selected for it to appear in the Composition panel.
    • Motion blur doesn't show. It has to be enabled on the layer switch and on the composition switch at the top of the timeline.

    For other visuals that pair well with a route (distance labels, lot outlines, the site plan over the land), see the 12 After Effects effects and tricks for real estate videos and how to mark a plot of land in a drone video.

    Selling land? At Royaltor360 we combine drone footage with an interactive lot plan and a CRM to follow up with every lead. See how it works in 1 minute (in Spanish) →

    Frequently asked questions

    Do I need a plugin to animate a route in After Effects?

    No. A shape layer drawn with the Pen tool and the Trim Paths operation are enough. To make an object follow the route, copy the Path and paste it into Position.

    How do I make the line draw itself?

    On the shape layer, choose Contents → Add → Trim Paths and animate End from 0% to 100%. To make it disappear afterwards, animate Start from 0% to 100%.

    Can I use a Google Maps screenshot in a video?

    In an online educational or entertainment video, yes, without asking for permission and with visible attribution. For ads or promotional videos, Google asks you to submit the project for approval, and Google Earth and Satellite view can't be used for commercial purposes.

    Which map should I use for a real estate video?

    OpenStreetMap with the credit "© OpenStreetMap contributors", a simplified map you draw yourself, or your own drone footage.

    Why is my route not showing in After Effects?

    Most often: Start and End have the same value, the route was drawn as a mask on the map, the stroke is off or 0 wide, or the route layer is below the map.

    How do I make a car or an arrow turn with the curves?

    Paste the Path into its Position and turn on Layer → Transform → Auto-Orient (Ctrl + Alt + O) → Orient Along Path. Then fix the Rotation if it points the wrong way.

    If you are just starting out, the free course "From 0 to your first real estate video with After Effects" covers the interface, layers and keyframes before getting to techniques like this one.

    Cristhian Proaño

    Real estate content creator

    I teach how to make real estate videos on YouTube (in Spanish). I also run Royaltor360.

    More about me

    Get free resources every week

    No spam. Only useful content for your real estate project. The newsletter is in Spanish.