###前提・実現したいこと
facebook-instant-articles-wp のプラグインを使いACFで作ったGOOGLEマップを地図に変換したいです。
FBはwebページと同じ内容を求めるため、GOOGLEマップを排除しても、申請がエラーで通りません。
そのため、おそらく地図に変換を求めていると思われます。
審査担当者からの追加情報:
Please include all of the embeds found in the web article:
I would also like to point out that Instant Articles supports map embeds:
Transformer Rulesをカスタマイズし、地図のコードに
変換する必要があるのですが、
変換方法がよくわかりません。
アドバイスをいただければ幸いです。
よろしくお願いいたします。
###発生している問題・エラーメッセージ
No rules defined for <div class="acf-map"> in the context of InstantArticle
###該当のソースコード
<div class="acf-map"><div class="marker" data-lat="35.6698514" data-lng="139.76387249999993"></div></div>
###基本的な地図のコード
https://developers.facebook.com/docs/instant-articles/reference/map
<figure class="op-map"> <script type="application/json" class="op-geotag"> { "type": "Feature", "geometry": { "type": "Point", "coordinates": [23.166667, 89.216667] }, "properties": { "title": "Jessore, Bangladesh", "radius": 750000, "pivot": true, "style": "satellite", } } </script> </figure>
###試したこと
Source Markup:に直接地図コードとなるように記述しましたが、
うまく表示されませんでした。
###補足情報(言語/FW/ツール等のバージョンなど)
Instant Articles for WP バージョン 3.3.5
WordPress バージョン 4.7.5
あなたの回答
tips
プレビュー