Scroll ImageMap Documentation

Comments

4 comments

  • Avatar
    Thomas Walker (K15t Software) (Edited )

    Hi,

    Thanks for the question.

    Just to clarify – do you want to add a macro to an existing page using the REST API?

    For your information: from your post, it looks like that example you quoted from the 2013 documentation is for ImageMap 1.x. If you are using Scroll ImageMap 2.x, then the old 1.x documentation will be irrelevant as the 2.x release featured a major overhaul that totally changed the way that the add-on worked.

    You can find the new 2.x documentation at https://help.k15t.com/scroll-imagemap/server/scroll-imagemap-documentation-114102020.html

    Cheers, Tom

  • Avatar
    Tulio de Carvalho Matias

    Indeed, i want to use the REST API to create a page and insert the macro on this newly created page.

    I didn't find on the link that you've posted the definition of the macro. 

  • Avatar
    Roman Serazhiev (Edited )

    Hi Tulio.

    Am I correct that you need an example of the storage format of an ImageMap macro? I have inserted a simple macro on my local Confluence page and here is what I got:

    <p><ac:structured-macro ac:name="scroll-imagemap-macro" ac:schema-version="1" ac:macro-id="b9a215d7-e7bd-404e-902a-946554e7756e"><ac:parameter ac:name="data">{&quot;dataVersion&quot;:2,&quot;shapes&quot;:[{&quot;shape&quot;:&quot;rect&quot;,&quot;coordinates&quot;:&quot;45,15,153,104&quot;,&quot;properties&quot;:{&quot;title&quot;:&quot;square shape tooltip&quot;,&quot;resource&quot;:{&quot;id&quot;:&quot;&quot;,&quot;type&quot;:&quot;&quot;},&quot;target&quot;:&quot;_blank&quot;}},{&quot;shape&quot;:&quot;circle&quot;,&quot;coordinates&quot;:&quot;290,38,197,197&quot;,&quot;properties&quot;:{&quot;title&quot;:&quot;circle shape tultip&quot;,&quot;resource&quot;:{&quot;id&quot;:&quot;&quot;,&quot;type&quot;:&quot;&quot;},&quot;target&quot;:&quot;_blank&quot;}},{&quot;shape&quot;:&quot;polygon&quot;,&quot;coordinates&quot;:&quot;119.83,273.44,201.62,249,259,377,80,336.72&quot;,&quot;properties&quot;:{&quot;title&quot;:&quot;polygon shape tooltip&quot;,&quot;resource&quot;:{&quot;id&quot;:&quot;&quot;,&quot;type&quot;:&quot;&quot;},&quot;target&quot;:&quot;_blank&quot;}}],&quot;viewSize&quot;:734,&quot;image&quot;:{&quot;resource&quot;:{&quot;id&quot;:&quot;att13664427&quot;,&quot;type&quot;:&quot;attachment-link&quot;},&quot;width&quot;:734,&quot;height&quot;:388}}</ac:parameter></ac:structured-macro></p>

    Does this help?

    Cheers,
    Roman.

  • Avatar
    Tulio de Carvalho Matias

    It does! Tank you!

Please sign in to leave a comment.

Powered by Zendesk