• Resolved Michael Nelson

    (@mnelson4)


    Howdy! I have a plugin called Print My Blog that fetches posts using the REST API and dumps them all onto a single page for printing/exporting to PDF etc.
    When posts contain an OSM map, the map doesn’t appear in this special print page.

    On the page I linked to, click “Print” and you’ll be taken to a mini version of this page (it just prints the content’s of that one page.)

    Is it not working because I need to trigger enqueuing OSM’s Javascript? Or is OSM’s Javascript enqueued OK, it just needs to trigger rendering the maps (after the content is fetched via the REST API)?

    Feel free to tell me my question doesn’t make sense.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author MiKa

    (@photoweblog)

    Hello @mnelson4

    to be honest: I do not know. The Javascript is loaded by Print My Blog, because I can see the buble of the marker when PDF was generated.

    Br, MiKa

    Thread Starter Michael Nelson

    (@mnelson4)

    Ok, so it’s loaded, it probably needs to be initialized somehow.
    I’ll comment again if I figure it out.
    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to display when fetching post via REST API’ is closed to new replies.