Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6846499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:37:48+00:00 2026-05-27T00:37:48+00:00

Is there a concept of shape inheritance in SVG? Problem: I’m creating a map

  • 0

Is there a concept of shape inheritance in SVG?

Problem:
I’m creating a map with various icon types that represent different entities on the map. Is there a way to link these icon types, so that I can modify the “parent” (say the icon in a legend) and all the “children” will inherit those properties?

Doing it in Inkscape, but I’m hoping it’s an SVG property, and thus a valid Stackoverflow question.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T00:37:49+00:00Added an answer on May 27, 2026 at 12:37 am

    I’m not sure what you mean by “properties”.

    You can use CSS class="foo" to apply visual styling to your elements, e.g. fill:red; stroke-width:2px. Changing the CSS rule will affect the visual style of all shapes with that class.

    However, perhaps what you want is the <use> element, which allows you to have many lightweight references to a single shape (or arbitrary set of geometry) placed throughout your document. Changes to the original shapes/paths/visual styles affect all instances.

    A <use> element may reference a specific shape, a <g>roup of shapes, or even an entire <svg> document.

    To create a special source graphic that is not displayed on its own you can either use a <symbol> (which has a viewBox), or place any content in the <defs> section (such as a <g>).

    Here is an example showing the use of symbols and <use> to place identical markers on a map:
    http://www.carto.net/svg/samples/symbol.shtml

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a good resource out there that explains the concept of enumerators and
Now that it's clear what a metaclass is , there is an associated concept
is there a concept like ASP Masterpages in JSP? Regards.
Since there is no concept of sessions in ASP.Net MVC and each request is
Is there any disadvantage of using URL expiring concept to protect online videos?
There is a very cool sounding technique called Shape Context matching, which can be
I know that boxing is a popular concept with plenty of information available on
Is there a concept in C# of class definition and implementation similar to what
I have an application that is very connection-based, i.e. multiple inputs/outputs. The UI concept
Is there a concept called vault in perforce? What does it mean?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.