Skip to content

About

Inkscape Extension for creation of floor Maps compatible with the Flutter Maps Widget Extension

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Floor Maps Entension

Floor Maps Extension is an inkscape extension that allows you to add navigations specification required to use the Flutter Map Widget.

Link pattern

Each point / building objects have a unique id and a list of neighbours. The Linking patter is described by the following regex expressions:

POINT_ID_REGEX = re.compile(r'^point-(\d+)(?:=([\d-]*))?$')
# point-43=44-39-45
# │     │  └‒‒└‒‒└‒‒‒‒‒ unique IDs of connected neighbors
# │     └‒‒‒‒‒ unique ID of the object
# └‒‒‒‒‒ class of the object - point

BUILDING_ID_REGEX = re.compile(r'^((?!point-)[a-zA-Z]+)-(?:([a-zA-Z]+)-)?(\d+)=([\d]+)$')
# stairs-elevator-1=2
# │      │        │ └‒‒‒‒‒ unique ID of the connected entrance point (there can be only one)
# │      │        └‒‒‒‒‒ unique ID of the object
# │      └‒‒‒‒‒ subtype of the object (required for stairs and toilet)
# └‒‒‒‒‒ class of the object

Funtionalities

As of today the extension allows you sped up your floor map creation by providing a set of diferent operations from connecting points, addition of buildings up to deletion of no-longer-linked points.

Main page: image

Point Connection

Given a series of selected svg elements will obtain only the ellipses & circle shapes to link them by updating their id ittribute.

Each one will be assigned a unique point id and will have a list of linked neighbour ids.

The extension allows you to specify wether to draw a visual line representing each connection (you can specify the color and stroke of such lines).

image

NOTE: It is pending to implement smart connect features to reduce overhead when creating bigger floor maps.

Example results: image image

Building Connection

Given a serias of selected svg elements will asign a unique building id, draw an entrance point (a common point used to note the entrance of a building) and link the created point id on the building svg element id attribute

Allows you to set the size, color fill and stroke of the entrance points as well as its positioning relative to the building's building box.

image

Example results:

imageimage

About

Inkscape Extension for creation of floor Maps compatible with the Flutter Maps Widget Extension

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages