सुलभता पैटर्न · मीडिया

टेक्स्ट विकल्प वाला मैप

मैप इस बात का चित्र है कि चीज़ें कहाँ हैं, इसलिए उसे वही तथ्य टेक्स्ट में भी चाहिए: यहाँ हर दुकान, उसका पता, दूरी और समय एक सूची में भी हैं जो हमेशा पेज पर रहती है। मैप ख़ुद भी माउस के बिना काम करता है: पिन दूरी के क्रम में बटन हैं, ऐरो कुंजियाँ उनके बीच चलती हैं, और ज़ूम और खिसकाने के लिए खींचने के साथ बटन भी हैं।

डब्ल्यूसीएजी मानदंड
7
कीबोर्ड नियम
6
जाँच का तरीक़ा
axe, कीबोर्ड और इंस्पेक्टर

लाइव डेमो

आज़माएँ

इसे माउस, कीबोर्ड या स्क्रीन रीडर से इस्तेमाल करें। साथ का इंस्पेक्टर दिखाता है कि आपके इस्तेमाल के दौरान ब्राउज़र सहायक तकनीक को क्या बताता है: फ़ोकस, स्थिति में बदलाव और घोषणाएँ।

बेंगलुरु में केसर टी की दुकानें

दूरियाँ एमजी रोड मेट्रो से। मैप सरल बनाया गया है, पैमाने पर नहीं।

सिर्फ़ ये दिखाएँ

दिखाई गई दुकानें: 8

मैप छोड़ें

ऐरो कुंजियाँ दुकानों के बीच चलती हैं। प्लस और माइनस ज़ूम करते हैं। मैप खिसकाने के लिए खींचें या बटन इस्तेमाल करें।

चुनी हुई दुकान

सभी दुकानें, सबसे पास वाली पहले

  1. केसर टी, इंदिरानगर
    3.8 किमी
    पता
    100 फ़ीट रोड, एचएएल 2nd स्टेज
    खुलने का समय
    रात 9 बजे तक खुली
    सुविधाएँ
    बैठने की जगह, बिना सीढ़ी का प्रवेश
  2. केसर टी, कोरमंगला
    4.6 किमी
    पता
    80 फ़ीट रोड, 4th ब्लॉक
    खुलने का समय
    रात 11 बजे तक खुली
    सुविधाएँ
    बैठने की जगह
  3. केसर टी, बसवनगुडी
    5.4 किमी
    पता
    डीवीजी रोड, गांधी बाज़ार
    खुलने का समय
    रात 8 बजे तक खुली
    सुविधाएँ
    बिना सीढ़ी का प्रवेश
  4. केसर टी, मल्लेश्वरम
    5.9 किमी
    पता
    संपिगे रोड, 8th क्रॉस
    खुलने का समय
    रात 9 बजे तक खुली
    सुविधाएँ
    बैठने की जगह, बिना सीढ़ी का प्रवेश
  5. केसर टी, जयनगर
    6.7 किमी
    पता
    11th मेन, 4th ब्लॉक
    खुलने का समय
    रात 10 बजे तक खुली
    सुविधाएँ
    बिना सीढ़ी का प्रवेश
  6. केसर टी, हेब्बल
    8.1 किमी
    पता
    बेल्लारी रोड, फ़्लाईओवर के पास
    खुलने का समय
    रात 8 बजे तक खुली
    सुविधाएँ
    सिर्फ़ पार्सल
  7. केसर टी, एचएसआर लेआउट
    8.9 किमी
    पता
    27th मेन, सेक्टर 1
    खुलने का समय
    रात 11 बजे तक खुली
    सुविधाएँ
    बैठने की जगह, बिना सीढ़ी का प्रवेश
  8. केसर टी, व्हाइटफ़ील्ड
    15.8 किमी
    पता
    आईटीपीएल मेन रोड
    खुलने का समय
    रात 10 बजे तक खुली
    सुविधाएँ
    बैठने की जगह

जावास्क्रिप्ट के बिना डेमो उतना ही काम करता है जितना उसका एचटीएमएल; इंस्पेक्टर के लिए जावास्क्रिप्ट चाहिए।

कीबोर्ड

जिन कुंजियों पर यह काम करता है

हर क्रिया पॉइंटर के बिना काम करती है।

कुंजीयह क्या करती है
Tabव्यू बटनों, फ़िल्टरों, 'मैप छोड़ें', चुनी हुई दुकान के पिन, ज़ूम और खिसकाने के बटनों, और फिर सूची से होकर गुज़रता है।
Arrow RightयाArrow Downकिसी पिन पर, दूरी के क्रम में अगली दुकान पर जाता है और उसका ब्योरा दिखाता है, आख़िर में पहुँचकर फिर शुरू से।
Arrow LeftयाArrow Upकिसी पिन पर, पिछली दुकान पर जाता है और उसका ब्योरा दिखाता है।
HomeयाEndकिसी पिन पर, दिखाई गई सबसे पास या सबसे दूर की दुकान पर जाता है।
PlusयाMinusकिसी पिन या मैप बटन पर फ़ोकस हो तो ज़ूम इन या आउट करता है; चुना हुआ पिन नज़र में रहता है।
EnterयाSpaceखिसकाने के बटन पर, मैप को एक कदम खिसकाता है; सूची में 'मैप पर दिखाएँ' पर, मैप दिखाता है, वह दुकान चुनता है और फ़ोकस उसके पिन पर ले जाता है।

स्क्रीन रीडर

यह क्या घोषित करता है

मार्कअप की भूमिकाओं, नामों और स्थितियों से लिखा गया।

कबअपेक्षित घोषणा
Tab मैप तक पहुँचता हैमैप पर दुकानें, समूह। केसर टी, इंदिरानगर, रात 9 बजे तक खुली, बटन, मौजूदा
किसी पिन पर Arrow Rightकेसर टी, कोरमंगला, रात 11 बजे तक खुली, बटन, मौजूदा
'रात 9 बजे के बाद खुली' चुना जाता हैरात 9 बजे के बाद खुली, चेकबॉक्स, चुना हुआ। दिखाई गई दुकानें: 4
ज़ूम इन अपनी सीमा पर पहुँचता हैज़ूम इन करें, बटन, अनुपलब्ध
व्हाइटफ़ील्ड के लिए 'मैप पर दिखाएँ' दबाया जाता हैकेसर टी, व्हाइटफ़ील्ड, रात 10 बजे तक खुली, बटन, मौजूदा
लिस्ट दबाया जाता हैलिस्ट, टॉगल बटन, दबा हुआ

ये अपेक्षित घोषणाएँ हैं, रिकॉर्डिंग नहीं। स्क्रीन रीडर और ब्राउज़र के हिसाब से शब्द और क्रम बदलते हैं।

कोड

कोड कॉपी करें

वही फ़ाइलें जिन पर यह डेमो चलता है। स्टाइल एक प्रीफ़िक्स के साथ परोसी जाती हैं जो इस साइट की अपनी स्टाइल को डेमो से दूर रखता है; आप जो कॉपी करते हैं वह मूल है।

मार्कअप

<section class="ap-map-alternative" data-ap-map-alternative aria-labelledby="map-alt-name">
  <div class="ap-map-alternative__top">
    <div>
      <h3 class="ap-map-alternative__name" id="map-alt-name">Kesar Tea stores in Bengaluru</h3>
      <p class="ap-map-alternative__sub">Distances from MG Road metro. The map is simplified, not to scale.</p>
    </div>
    <div class="ap-map-alternative__views" role="group" aria-label="Show stores as">
      <button type="button" class="ap-map-alternative__view" data-map-view="map" aria-pressed="true">
        <svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="m3 6 6-2 6 2 6-2v14l-6 2-6-2-6 2Z"/><path d="M9 4v14M15 6v14"/></svg>
        Map
      </button>
      <button type="button" class="ap-map-alternative__view" data-map-view="list" aria-pressed="false">
        <svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M9 6h11M9 12h11M9 18h11"/><path d="M4 6h.01M4 12h.01M4 18h.01"/></svg>
        List
      </button>
    </div>
  </div>

  <div class="ap-map-alternative__filters">
    <fieldset class="ap-map-alternative__fieldset">
      <legend class="ap-map-alternative__legend">Show only</legend>
      <label class="ap-map-alternative__filter"><input type="checkbox" data-map-filter="late" /> Open after 9 pm</label>
      <label class="ap-map-alternative__filter"><input type="checkbox" data-map-filter="seating" /> Seating</label>
      <label class="ap-map-alternative__filter"><input type="checkbox" data-map-filter="stepfree" /> Step-free entry</label>
    </fieldset>
    <p class="ap-map-alternative__count" role="status"><span>Stores shown:</span> <span data-map-count>8</span></p>
  </div>

  <div class="ap-map-alternative__mapview" data-map-mapview>
    <a class="ap-map-alternative__skip" href="#map-alt-list">Skip the map</a>
    <div class="ap-map-alternative__layout">
      <div class="ap-map-alternative__mapcol">
        <div class="ap-map-alternative__frame" data-map-frame>
          <div class="ap-map-alternative__world" data-map-world>
            <svg class="ap-map-alternative__ground" viewBox="0 0 600 400" preserveAspectRatio="none" aria-hidden="true" focusable="false">
              <rect class="ap-map-alternative__land" width="600" height="400"/>
              <g class="ap-map-alternative__areas">
                <path d="M24 146 98 138l6 162-76 16Z"/>
                <path d="M392 20 500 30l-8 66-104 8Z"/>
                <path d="M448 226 506 234l-6 42-54 8Z"/>
                <path d="M568 250 596 246v150h-30Z"/>
                <path d="M112 38 236 28l14 90-54 28-78-14Z"/>
                <path d="M268 8 384 14l-6 70-78 12-42-30Z"/>
                <path d="M256 136 346 126l16 88-82 16-36-38Z"/>
                <path d="M372 116 476 106l10 106-104 10Z"/>
                <path d="M506 104 594 96v136l-80-6Z"/>
                <path d="M330 244 432 234l10 88-96 10Z"/>
                <path d="M452 292 550 282l8 98-98 10Z"/>
                <path d="M206 280 314 270l12 92-110 10Z"/>
                <path d="M104 214 212 200l10 92-108 14Z"/>
              </g>
              <g class="ap-map-alternative__green">
                <ellipse cx="292" cy="166" rx="24" ry="14"/>
                <ellipse cx="232" cy="252" rx="20" ry="13"/>
              </g>
              <g class="ap-map-alternative__water">
                <ellipse cx="520" cy="262" rx="28" ry="12"/>
                <ellipse cx="340" cy="74" rx="14" ry="9"/>
                <ellipse cx="364" cy="160" rx="10" ry="16"/>
              </g>
              <g class="ap-map-alternative__roads">
                <path d="M62 200C58 92 196 22 320 24s242 50 250 166-64 192-240 196S66 316 62 200Z"/>
                <path d="M300 190 170 70M300 190 320 20M300 190l260-30M300 190l180 160M300 190l-46 182M300 190 96 262"/>
              </g>
            </svg>
            <span class="ap-map-alternative__here" data-x="50" data-y="47" aria-hidden="true"><span class="ap-map-alternative__dot"></span>You are here</span>
            <div class="ap-map-alternative__pins" role="group" aria-label="Stores on the map" aria-describedby="map-alt-keys">
          <button type="button" class="ap-map-alternative__pin" data-map-pin="indiranagar" data-x="71" data-y="40" aria-label="Kesar Tea, Indiranagar, open until 9 pm" aria-current="true">
            <svg class="ap-map-alternative__pinmark" viewBox="0 0 28 36" aria-hidden="true" focusable="false"><path d="M14 34S3 23.8 3 14.5a11 11 0 0 1 22 0C25 23.8 14 34 14 34Z"/><circle cx="14" cy="14.5" r="4.5"/></svg>
            <span class="ap-map-alternative__tag" aria-hidden="true">Indiranagar</span>
          </button>
          <button type="button" class="ap-map-alternative__pin" data-map-pin="koramangala" data-x="63" data-y="70" aria-label="Kesar Tea, Koramangala, open until 11 pm" tabindex="-1">
            <svg class="ap-map-alternative__pinmark" viewBox="0 0 28 36" aria-hidden="true" focusable="false"><path d="M14 34S3 23.8 3 14.5a11 11 0 0 1 22 0C25 23.8 14 34 14 34Z"/><circle cx="14" cy="14.5" r="4.5"/></svg>
            <span class="ap-map-alternative__tag" aria-hidden="true">Koramangala</span>
          </button>
          <button type="button" class="ap-map-alternative__pin" data-map-pin="basavanagudi" data-x="27" data-y="62" aria-label="Kesar Tea, Basavanagudi, open until 8 pm" tabindex="-1">
            <svg class="ap-map-alternative__pinmark" viewBox="0 0 28 36" aria-hidden="true" focusable="false"><path d="M14 34S3 23.8 3 14.5a11 11 0 0 1 22 0C25 23.8 14 34 14 34Z"/><circle cx="14" cy="14.5" r="4.5"/></svg>
            <span class="ap-map-alternative__tag" aria-hidden="true">Basavanagudi</span>
          </button>
          <button type="button" class="ap-map-alternative__pin" data-map-pin="malleshwaram" data-x="29" data-y="24" aria-label="Kesar Tea, Malleshwaram, open until 9 pm" tabindex="-1">
            <svg class="ap-map-alternative__pinmark" viewBox="0 0 28 36" aria-hidden="true" focusable="false"><path d="M14 34S3 23.8 3 14.5a11 11 0 0 1 22 0C25 23.8 14 34 14 34Z"/><circle cx="14" cy="14.5" r="4.5"/></svg>
            <span class="ap-map-alternative__tag" aria-hidden="true">Malleshwaram</span>
          </button>
          <button type="button" class="ap-map-alternative__pin" data-map-pin="jayanagar" data-x="44" data-y="80" aria-label="Kesar Tea, Jayanagar, open until 10 pm" tabindex="-1">
            <svg class="ap-map-alternative__pinmark" viewBox="0 0 28 36" aria-hidden="true" focusable="false"><path d="M14 34S3 23.8 3 14.5a11 11 0 0 1 22 0C25 23.8 14 34 14 34Z"/><circle cx="14" cy="14.5" r="4.5"/></svg>
            <span class="ap-map-alternative__tag" aria-hidden="true">Jayanagar</span>
          </button>
          <button type="button" class="ap-map-alternative__pin" data-map-pin="hebbal" data-x="53" data-y="17" aria-label="Kesar Tea, Hebbal, open until 8 pm" tabindex="-1">
            <svg class="ap-map-alternative__pinmark" viewBox="0 0 28 36" aria-hidden="true" focusable="false"><path d="M14 34S3 23.8 3 14.5a11 11 0 0 1 22 0C25 23.8 14 34 14 34Z"/><circle cx="14" cy="14.5" r="4.5"/></svg>
            <span class="ap-map-alternative__tag" aria-hidden="true">Hebbal</span>
          </button>
          <button type="button" class="ap-map-alternative__pin" data-map-pin="hsr" data-x="80" data-y="84" aria-label="Kesar Tea, HSR Layout, open until 11 pm" tabindex="-1">
            <svg class="ap-map-alternative__pinmark" viewBox="0 0 28 36" aria-hidden="true" focusable="false"><path d="M14 34S3 23.8 3 14.5a11 11 0 0 1 22 0C25 23.8 14 34 14 34Z"/><circle cx="14" cy="14.5" r="4.5"/></svg>
            <span class="ap-map-alternative__tag" aria-hidden="true">HSR Layout</span>
          </button>
          <button type="button" class="ap-map-alternative__pin ap-map-alternative__pin--end" data-map-pin="whitefield" data-x="92" data-y="50" aria-label="Kesar Tea, Whitefield, open until 10 pm" tabindex="-1">
            <svg class="ap-map-alternative__pinmark" viewBox="0 0 28 36" aria-hidden="true" focusable="false"><path d="M14 34S3 23.8 3 14.5a11 11 0 0 1 22 0C25 23.8 14 34 14 34Z"/><circle cx="14" cy="14.5" r="4.5"/></svg>
            <span class="ap-map-alternative__tag" aria-hidden="true">Whitefield</span>
          </button>
            </div>
          </div>
        </div>
        <div class="ap-map-alternative__controls" role="group" aria-label="Zoom and move the map">
          <div class="ap-map-alternative__ctlset">
            <button type="button" class="ap-map-alternative__ctl" data-map-zoom="in" aria-label="Zoom in" aria-keyshortcuts="+"><svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M12 5v14M5 12h14"/></svg></button>
            <button type="button" class="ap-map-alternative__ctl" data-map-zoom="out" aria-label="Zoom out" aria-disabled="true" aria-keyshortcuts="-"><svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M5 12h14"/></svg></button>
            <button type="button" class="ap-map-alternative__ctl" data-map-reset aria-label="Reset view" aria-disabled="true"><svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M4 12a8 8 0 1 0 2.4-5.7M4 4v4.5h4.5"/></svg></button>
          </div>
          <div class="ap-map-alternative__ctlset">
            <button type="button" class="ap-map-alternative__ctl" data-map-pan="left" aria-label="Move left" aria-disabled="true"><svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="m15 6-6 6 6 6"/></svg></button>
            <button type="button" class="ap-map-alternative__ctl" data-map-pan="up" aria-label="Move up" aria-disabled="true"><svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="m6 15 6-6 6 6"/></svg></button>
            <button type="button" class="ap-map-alternative__ctl" data-map-pan="down" aria-label="Move down" aria-disabled="true"><svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="m6 9 6 6 6-6"/></svg></button>
            <button type="button" class="ap-map-alternative__ctl" data-map-pan="right" aria-label="Move right" aria-disabled="true"><svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="m9 6 6 6-6 6"/></svg></button>
          </div>
        </div>
        <p class="ap-map-alternative__keys" id="map-alt-keys">Arrow keys move between stores. Plus and minus zoom. Drag or use the buttons to move the map.</p>
      </div>
      <div class="ap-map-alternative__details" data-map-details>
        <p class="ap-map-alternative__kicker">Selected store</p>
        <div class="ap-map-alternative__detail" data-map-detail></div>
        <p class="ap-map-alternative__none" data-map-none hidden>No store matches these filters.</p>
      </div>
    </div>
  </div>

  <div class="ap-map-alternative__list" id="map-alt-list" tabindex="-1">
    <h4 class="ap-map-alternative__listname">All stores, nearest first</h4>
    <ol class="ap-map-alternative__stores">
      <li class="ap-map-alternative__store" data-map-store="indiranagar" data-tags="seating stepfree">
        <div class="ap-map-alternative__storehead">
          <h5 class="ap-map-alternative__storename" id="map-alt-n-indiranagar">Kesar Tea, Indiranagar</h5>
          <span class="ap-map-alternative__km">3.8 km</span>
        </div>
        <dl class="ap-map-alternative__facts">
          <div><dt>Address</dt><dd>100 Feet Road, HAL 2nd Stage</dd></div>
          <div><dt>Opening hours</dt><dd>Open until 9 pm</dd></div>
          <div><dt>Has</dt><dd>Seating, step-free entry</dd></div>
        </dl>
        <button type="button" class="ap-btn ap-btn--ghost ap-map-alternative__show" data-map-show="indiranagar" aria-describedby="map-alt-n-indiranagar">
          <svg class="ap-btn__icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M12 21s-6.5-6-6.5-11a6.5 6.5 0 0 1 13 0c0 5-6.5 11-6.5 11Z"/><circle cx="12" cy="10" r="2.5"/></svg>
          Show on map
        </button>
      </li>
      <li class="ap-map-alternative__store" data-map-store="koramangala" data-tags="late seating">
        <div class="ap-map-alternative__storehead">
          <h5 class="ap-map-alternative__storename" id="map-alt-n-koramangala">Kesar Tea, Koramangala</h5>
          <span class="ap-map-alternative__km">4.6 km</span>
        </div>
        <dl class="ap-map-alternative__facts">
          <div><dt>Address</dt><dd>80 Feet Road, 4th Block</dd></div>
          <div><dt>Opening hours</dt><dd>Open until 11 pm</dd></div>
          <div><dt>Has</dt><dd>Seating</dd></div>
        </dl>
        <button type="button" class="ap-btn ap-btn--ghost ap-map-alternative__show" data-map-show="koramangala" aria-describedby="map-alt-n-koramangala">
          <svg class="ap-btn__icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M12 21s-6.5-6-6.5-11a6.5 6.5 0 0 1 13 0c0 5-6.5 11-6.5 11Z"/><circle cx="12" cy="10" r="2.5"/></svg>
          Show on map
        </button>
      </li>
      <li class="ap-map-alternative__store" data-map-store="basavanagudi" data-tags="stepfree">
        <div class="ap-map-alternative__storehead">
          <h5 class="ap-map-alternative__storename" id="map-alt-n-basavanagudi">Kesar Tea, Basavanagudi</h5>
          <span class="ap-map-alternative__km">5.4 km</span>
        </div>
        <dl class="ap-map-alternative__facts">
          <div><dt>Address</dt><dd>DVG Road, Gandhi Bazaar</dd></div>
          <div><dt>Opening hours</dt><dd>Open until 8 pm</dd></div>
          <div><dt>Has</dt><dd>Step-free entry</dd></div>
        </dl>
        <button type="button" class="ap-btn ap-btn--ghost ap-map-alternative__show" data-map-show="basavanagudi" aria-describedby="map-alt-n-basavanagudi">
          <svg class="ap-btn__icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M12 21s-6.5-6-6.5-11a6.5 6.5 0 0 1 13 0c0 5-6.5 11-6.5 11Z"/><circle cx="12" cy="10" r="2.5"/></svg>
          Show on map
        </button>
      </li>
      <li class="ap-map-alternative__store" data-map-store="malleshwaram" data-tags="seating stepfree">
        <div class="ap-map-alternative__storehead">
          <h5 class="ap-map-alternative__storename" id="map-alt-n-malleshwaram">Kesar Tea, Malleshwaram</h5>
          <span class="ap-map-alternative__km">5.9 km</span>
        </div>
        <dl class="ap-map-alternative__facts">
          <div><dt>Address</dt><dd>Sampige Road, 8th Cross</dd></div>
          <div><dt>Opening hours</dt><dd>Open until 9 pm</dd></div>
          <div><dt>Has</dt><dd>Seating, step-free entry</dd></div>
        </dl>
        <button type="button" class="ap-btn ap-btn--ghost ap-map-alternative__show" data-map-show="malleshwaram" aria-describedby="map-alt-n-malleshwaram">
          <svg class="ap-btn__icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M12 21s-6.5-6-6.5-11a6.5 6.5 0 0 1 13 0c0 5-6.5 11-6.5 11Z"/><circle cx="12" cy="10" r="2.5"/></svg>
          Show on map
        </button>
      </li>
      <li class="ap-map-alternative__store" data-map-store="jayanagar" data-tags="late stepfree">
        <div class="ap-map-alternative__storehead">
          <h5 class="ap-map-alternative__storename" id="map-alt-n-jayanagar">Kesar Tea, Jayanagar</h5>
          <span class="ap-map-alternative__km">6.7 km</span>
        </div>
        <dl class="ap-map-alternative__facts">
          <div><dt>Address</dt><dd>11th Main, 4th Block</dd></div>
          <div><dt>Opening hours</dt><dd>Open until 10 pm</dd></div>
          <div><dt>Has</dt><dd>Step-free entry</dd></div>
        </dl>
        <button type="button" class="ap-btn ap-btn--ghost ap-map-alternative__show" data-map-show="jayanagar" aria-describedby="map-alt-n-jayanagar">
          <svg class="ap-btn__icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M12 21s-6.5-6-6.5-11a6.5 6.5 0 0 1 13 0c0 5-6.5 11-6.5 11Z"/><circle cx="12" cy="10" r="2.5"/></svg>
          Show on map
        </button>
      </li>
      <li class="ap-map-alternative__store" data-map-store="hebbal" data-tags="">
        <div class="ap-map-alternative__storehead">
          <h5 class="ap-map-alternative__storename" id="map-alt-n-hebbal">Kesar Tea, Hebbal</h5>
          <span class="ap-map-alternative__km">8.1 km</span>
        </div>
        <dl class="ap-map-alternative__facts">
          <div><dt>Address</dt><dd>Bellary Road, near the flyover</dd></div>
          <div><dt>Opening hours</dt><dd>Open until 8 pm</dd></div>
          <div><dt>Has</dt><dd>Takeaway only</dd></div>
        </dl>
        <button type="button" class="ap-btn ap-btn--ghost ap-map-alternative__show" data-map-show="hebbal" aria-describedby="map-alt-n-hebbal">
          <svg class="ap-btn__icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M12 21s-6.5-6-6.5-11a6.5 6.5 0 0 1 13 0c0 5-6.5 11-6.5 11Z"/><circle cx="12" cy="10" r="2.5"/></svg>
          Show on map
        </button>
      </li>
      <li class="ap-map-alternative__store" data-map-store="hsr" data-tags="late seating stepfree">
        <div class="ap-map-alternative__storehead">
          <h5 class="ap-map-alternative__storename" id="map-alt-n-hsr">Kesar Tea, HSR Layout</h5>
          <span class="ap-map-alternative__km">8.9 km</span>
        </div>
        <dl class="ap-map-alternative__facts">
          <div><dt>Address</dt><dd>27th Main, Sector 1</dd></div>
          <div><dt>Opening hours</dt><dd>Open until 11 pm</dd></div>
          <div><dt>Has</dt><dd>Seating, step-free entry</dd></div>
        </dl>
        <button type="button" class="ap-btn ap-btn--ghost ap-map-alternative__show" data-map-show="hsr" aria-describedby="map-alt-n-hsr">
          <svg class="ap-btn__icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M12 21s-6.5-6-6.5-11a6.5 6.5 0 0 1 13 0c0 5-6.5 11-6.5 11Z"/><circle cx="12" cy="10" r="2.5"/></svg>
          Show on map
        </button>
      </li>
      <li class="ap-map-alternative__store" data-map-store="whitefield" data-tags="late seating">
        <div class="ap-map-alternative__storehead">
          <h5 class="ap-map-alternative__storename" id="map-alt-n-whitefield">Kesar Tea, Whitefield</h5>
          <span class="ap-map-alternative__km">15.8 km</span>
        </div>
        <dl class="ap-map-alternative__facts">
          <div><dt>Address</dt><dd>ITPL Main Road</dd></div>
          <div><dt>Opening hours</dt><dd>Open until 10 pm</dd></div>
          <div><dt>Has</dt><dd>Seating</dd></div>
        </dl>
        <button type="button" class="ap-btn ap-btn--ghost ap-map-alternative__show" data-map-show="whitefield" aria-describedby="map-alt-n-whitefield">
          <svg class="ap-btn__icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M12 21s-6.5-6-6.5-11a6.5 6.5 0 0 1 13 0c0 5-6.5 11-6.5 11Z"/><circle cx="12" cy="10" r="2.5"/></svg>
          Show on map
        </button>
      </li>
    </ol>
    <p class="ap-map-alternative__empty" data-map-empty hidden>No store matches these filters. Clear one to see more.</p>
  </div>
</section>

डब्ल्यूसीएजी 2.2

यह किन मानदंडों को पूरा करता है

वे सफलता मानदंड जिनका यह पैटर्न ध्यान रखता है, और कैसे।

  • 1.1.1 गैर-टेक्स्ट सामग्री स्तर A

    मैप इस बात का चित्र है कि दुकानें कहाँ हैं; सूची हर दुकान का पता, दूरी और समय टेक्स्ट में देती है, इसलिए कुछ भी देख पाने पर निर्भर नहीं है।

  • 2.1.1 कीबोर्ड स्तर A

    पिन बटन हैं, ऐरो कुंजियाँ उनके बीच चलती हैं, और ज़ूम और खिसकाना बटनों और प्लस और माइनस कुंजियों से होता है।

  • 2.4.3 फ़ोकस क्रम स्तर A

    पिन सूची के क्रम में चलते हैं, सबसे पास वाली पहले, न कि उस क्रम में जिसमें वे बनाए गए या स्क्रीन पर जहाँ वे हैं।

  • 2.4.11 फ़ोकस अवरुद्ध नहीं (न्यूनतम) स्तर AA

    किसी भी ज़ूम पर जब किसी पिन पर फ़ोकस आता है, मैप उसे फ़्रेम के किनारे के नीचे छोड़ने के बजाय नज़र में रखने के लिए खिसकता है।

  • 2.5.7 ड्रैगिंग मूवमेंट स्तर AA

    खींचने से मैप खिसकता है, पर खिसकाने के बटन यही काम एक-एक दबाव से करते हैं, उन लोगों के लिए जो खींच नहीं सकते।

  • 4.1.2 नाम, भूमिका, मान स्तर A

    हर पिन का नाम उसकी दुकान और समय से है, दिख रही दुकान aria-current है, और मैप और लिस्ट दबे होने की स्थिति बताते हैं।

  • 4.1.3 स्टेटस मैसेज स्तर AA

    फ़िल्टरों से मेल खाती दुकानों की संख्या एक स्टेटस संदेश है, जिसकी घोषणा फ़ोकस हिलाए बिना होती है।

उपयोग

इसे कब इस्तेमाल करें

इसे अपनाएँ

  • ऐसी जगहें जिनमें से लोग चुनते हैं, जैसे दुकानें, शाखाएँ, आयोजन स्थल या चार्जिंग पॉइंट।
  • कोई भी मैप जिसमें जानकारी हो, बशर्ते वही तथ्य टेक्स्ट में भी लिखे हों।

कुछ और इस्तेमाल करें

  • सिर्फ़ सजावट वाला मैप, जैसे किसी हेडिंग के पीछे शहर की रूपरेखा: उसे ख़ाली alt टेक्स्ट दें और कोई नियंत्रण नहीं।
  • मोड़-दर-मोड़ रास्ता: किसी पूरी मैप सेवा का लिंक दें, और मुख्य कदम टेक्स्ट में लिखें।
  • चुनने का अकेला तरीका मैप: जब लोग नाम या पिन कोड से खोजते हैं, सूची पहले रखें।

आम विफलताएँ

आमतौर पर यह कहाँ गलत होता है

  • बिना टेक्स्ट विकल्प का मैप

    चित्र या कैनवस वाला मैप स्क्रीन रीडर को कुछ नहीं बताता, और ज़ूम करने पर छोटा पिन पढ़ना मुश्किल होता है। सूची हर वह तथ्य देती है जो मैप दिखाता है।

  • पिन जो बटन नहीं हैं

    div या एसवीजी path से बने मार्कर तक Tab से नहीं पहुँचा जा सकता और उनका कोई नाम नहीं होता। यहाँ हर पिन एक बटन है जिसका नाम उसकी दुकान से है।

  • बनाए जाने के क्रम में पिन

    किसी लाइब्रेरी ने पिन जिस क्रम में रखे, उसमें Tab करना पूरे शहर में इधर-उधर कूदता है। यहाँ वे सूची की तरह सबसे पास वाली पहले चलते हैं।

  • खिसकाने का अकेला तरीका खींचना

    खींचना कीबोर्ड, स्विच या हेड पॉइंटर इस्तेमाल करने वालों के लिए नाकाम है। खिसकाने के बटन और कुंजियाँ यही काम करती हैं।

  • सिर्फ़ मैप बदलने वाले फ़िल्टर

    अगर सूची फ़िल्टरों को अनदेखा करे, तो दोनों व्यू अलग-अलग बातें कहते हैं और टेक्स्ट विकल्प बराबर नहीं रहता। यहाँ एक ही फ़िल्टर दोनों को बदलता है।

  • पेज पर स्क्रॉल-व्हील से ज़ूम

    जो मैप पेज स्क्रॉल करते समय ज़ूम हो जाए, वह लोगों को पेज के बीच में फँसा देता है। यहाँ ज़ूम सिर्फ़ बटनों और कुंजियों से होता है।

नोट्स

इसे बनाना

  • मैप के पास का ब्योरा दुकान चुने जाने पर सूची में उसकी प्रविष्टि से कॉपी होता है, इसलिए मैप और सूची कभी अलग बातें नहीं कह सकते।
  • पिन ज़ूम के उलटे अनुपात में छोटे-बड़े होते हैं, इसलिए हर ज़ूम स्तर पर उनका आकार और 32 गुणा 40 पिक्सेल का लक्ष्य वही रहता है।
  • एक समय में एक ही पिन Tab क्रम में होता है, चुना हुआ, इसलिए मैप एक ही पड़ाव है; हर दुकान से Tab के ज़रिए गुज़रने की जगह नीचे की सूची है।
  • जावास्क्रिप्ट के बिना पिन अपनी जगह नहीं लगते और मैप सिर्फ़ एक चित्र रह जाता है, पर सूची में फिर भी हर दुकान रहती है।
  • Leaflet और MapLibre जैसी मैप लाइब्रेरियों में अपना कीबोर्ड सपोर्ट होता है: जाँचें कि मार्कर नाम वाले, फ़ोकस हो सकने वाले बटन हों, और सूची फिर भी दें।

स्रोत: W3C WAI: जटिल चित्र · डब्ल्यूसीएजी 2.2 को समझना: खींचने वाली गतिविधियाँ · डब्ल्यूसीएजी 2.2 को समझना: फ़ोकस छिपा न हो (न्यूनतम)

लाइट और डार्क थीम में, डेस्कटॉप और फ़ोन की चौड़ाई पर axe से और कीबोर्ड से जाँचा गया। अभी हर स्क्रीन रीडर और ब्राउज़र जोड़ी के साथ नहीं परखा गया। सुधार बताएँ