gws.plugin.mapshare.action¶
The mapshare action.
Source code: gws.plugin.mapshare.action
Module Contents¶
- class gws.plugin.mapshare.action.Config¶
Bases:
gws.base.action.ConfigShareable links and QR codes for a map position.
- class gws.plugin.mapshare.action.CreateLinkResponse(*args, **kwargs)¶
Bases:
gws.ResponseShare link and its QR code.
- class gws.plugin.mapshare.action.CreateRequest(*args, **kwargs)¶
Bases:
gws.RequestRequest to create a share link.
- shape: gws.ShapeProps¶
Shared shape.
- class gws.plugin.mapshare.action.DecodeLinkRequest(*args, **kwargs)¶
Bases:
gws.RequestRequest to decode a share link.
- class gws.plugin.mapshare.action.DecodeLinkResponse(*args, **kwargs)¶
Bases:
gws.ResponseDecoded share link.
- shape: gws.ShapeProps¶
Shared shape, in the CRS of the project map.
- gws.plugin.mapshare.action.LINK_PARAM_NAME = 's'¶
- gws.plugin.mapshare.action.MAX_TITLE_LENGTH = 200¶
- class gws.plugin.mapshare.action.Object¶
Bases:
gws.base.action.ObjectMap share action.
- LINK_RE = Multiline-String¶
Show Value
"""(?x) ^ (?P<scale>\d+) ( ( x (?P<x>-?\d+(\.\d+)?) y (?P<y>-?\d+(\.\d+)?) ) | ( w (?P<wkb>[0-9a-f]+) ) ) ( _ (?P<title>.+) )? $ """
- create_link(req: gws.WebRequester, p: CreateRequest) → CreateLinkResponse¶
Create a share link and its QR code for a map position.
- decode_link(req: gws.WebRequester, p: DecodeLinkRequest) → DecodeLinkResponse¶
Decode a share link.
- props(user)¶