パッケージ、リポジトリ、アプリカテゴリを検索

flutter_image_map のカバー
パッケージ詳細v1.0.1

flutter_image_map

画像マップ、画像にカスタマイズ可能な色の領域を作成し、クリック/タッチに対して反応します。HTMLで行っているのと同じようにです。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
291
いいね数
26
Pub ポイント
150

パッケージをインストール

flutter pub add flutter_image_map

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Flutter Image Map は、ユーザーが画像上にクリック可能な領域をカスタムカラーで定義できるようにすることで、インタラクティブな画像マッピングを可能にします。HTML イメージマップを参考にし、複数のプラットフォームでタッチおよびクリック操作をサポートしています。ナビゲーション、製品ホットスポット、教育ツールなどのアプリケーション向けに、レスポンシブで視覚的に魅力的なマップを簡単に作成できます。このパッケージは Flutter プロジェクトにスムーズに統合され、領域の定義とユーザー入力の処理に簡単な API を提供します。

用途

  • インタラクティブ製品画像
  • 教育用図解
  • 地図ベースのナビゲーション
  • ホットスポットチュートリアル
  • ユーザーインターフェースのオーバーレイ

主な機能

  • カスタマイズ可能な色付き領域
  • タッチおよびクリックイベントの処理
  • クロスプラットフォーム対応
  • シンプルな領域定義 API
  • レスポンシブデザインの統合

適している対象

  • インタラクティブな画像を探しているUIデザイナー
  • 教育アプリ開発者
  • eコマース製品表示
  • Web およびモバイルアプリ開発者
  • インタラクティブなドキュメント

注意事項

  • 手動での領域座標の設定が必要です
  • 静的画像のインタラクションに限定
  • 動的またはアニメーション付きマップには適していません
  • 複雑な形状によってパフォーマンスが異なる場合があります
  • 組み込みのズームまたはパン機能なし

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

flutter_image_map

pub version

A simple but (hopefully) useful package that implements the HTML image map standard.

What is an Image Map?

Originally introduced in HTML 3.2 as a replacement for server side imagemaps. Server side image maps were clunky requiring a round trip to the web server to determine where to go based on the coordinates clicked in the image. Thus client side image-maps were born!

An imagemap is a graphic image where a user can click on different parts of the image and be directed to different destinations. imagemaps are made by defining each of the hot areas in terms of their x and y coordinates (relative to the top left hand corner). With each set of coordinates, you specify a link that users will be directed to when they click within the area.

As an example, say you have a map of the World that you wish to act as an image map. Each country could have their hot areas defined on the map to take you to different pages.

Examples

Check out the Example project for a full example code of all the differents ways to define image map regions.

Tools

  • https://www.image-map.net/ makes it extremely easy to create free HTML based image maps.
  • There is also a ROI(Region of interest) selecting tool in this project!
    ROI select tool link: http://www.jiayizhang.me Website down. Source code of the tool is in this repo (index.html in root folder). Just open it in browser should be fine.
How to use ROI selecting tool
  1. Select an image image

  2. Click on the image to add vertices of ROIs image

  3. If you want to create a new ROI, click on "New Polygon" image

  4. When you are done, press "Export" image

  5. It will pop up a dialog image

The format of the data is:
List<List>, each sub-list describes a polygon. To adjacent numbers represent a position.
e.g.
[
[x1,y1,x2,y2,x3,y3,...],//Polygon 1
[x1,y1,x2,y2,x3,y3,...],//Polygon 2
[x1,y1,x2,y2,x3,y3,...],//Polygon 3
]

カテゴリー

依存関係

依存関係一覧 1 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。