Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Highlighting a map

Featured Replies

Hi

 

I have an image of a village map on a website. I want to have a list of locations on the same page such, that when a location is clicked on, it is highlighted on the map. This could be achieved either by overlaying an arrow at the relevant place or by highlighting a small mapped area of the image. I'm hoping that this can be achieved in HTML CSS &/or javascript as I don't have access to php or serverside scripts.

 

Any advice on the best way to go about this would be much appreciated.

 

Thanks in advance,

 

Geoff.

How about having hidden divs, each with the arrow/highlight area positioned in the relevant locations on the map, then when one of the entries in the list are clicked it makes the relevant div appear?

  • Author

Many thanks for the advice guys.

I think I'll go with the hidden divs method it seem to work OK and I just need to figure out how to place them correctly on the image.

Many thanks for the advice guys.

I think I'll go with the hidden divs method it seem to work OK and I just need to figure out how to place them correctly on the image.

Absolute positioning?

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.