問題タブ [imagemapster]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
2 に答える
61 参照

javascript - プラグインで使用するためにコントローラーから JSON をフォーマットする

コントローラーから JSON 文字列を取得しています。

次のようなAjaxリクエストを介して取得しています:

問題は、これが私の文字列の形式を維持していないことです。コントローラー アクションを呼び出すと、正しくフォーマットされた JSON であることが示されますが、Ajax リクエストから出力されると、そうではありません。ここでは、コントローラから直接です:

プラグインに渡す前に、これが変数に設定された値であることを確認する方法はありますか?

私が使用しているプラ​​グインは ImageMapster と呼ばれます。現在、JSON をハードコーディングしており、意図したとおりに動作します。

0 投票する
1 に答える
624 参照

javascript - iScroll 4 を使用したイメージ マップ エリアのハイライトとズーム

私の Cordova プロジェクトでは、複数のズーム可能な画像 (iScroll による) を含むスライダーがあり、マップを使用して常に特定の領域を強調表示したいと考えています。しかし、imagemapster.js、maphilight.js などの多くのライブラリを試しましたが、これらのライブラリは画像のズーム機能を妨げます。領域のみを強調表示するために使用できるライブラリはありますか。

任意のヘルプまたはアイデア。前もって感謝します!

0 投票する
1 に答える
1423 参照

jquery - ImageMapster: Highlight all the areas but select a specific area on click on list item and show other areas selected with less opacity

I have referred below example: http://jsfiddle.net/jamietre/gjH5c/

I need exactly same functionality.

But change is - highlight all the areas on load. Hence used staticState: true. But use of the above option disabled effect of area highlight on click of the listed item.

What I need is - on click of list item, I want to highlight/select that corresponding area but at the same time keep the highlighting of other areas as it is with less opacity.

I tried changing the code for .mapster as below:

I also tried using .snapshot and .rebind method as shown in : http://jsfiddle.net/6maJw/

It didn't work. Please tell me if I am missing something.

Thanks a lot in advance

0 投票する
1 に答える
26 参照

javascript - イメージ マップを関数に戻す

画像があり、それをクリックすると、関数と画像マップを含む別の画像に移動します。しかし、次の画像には「別の画像に戻る」というテキストがありますが、前の画像に移動できません。

ユーザーが mainmenu.png をクリックすると、moreinfo.png に移動します。mainmenu.png に戻すにはどうすればよいですか?