Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 528181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:57:37+00:00 2026-05-13T08:57:37+00:00

I have a weather map on my website (jpg), but it does not indicate

  • 0

I have a weather map on my website (jpg), but it does not indicate cities. I would like to add point (with an index) show particular cities. What is the best way to do that. Can I use jquery for that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T08:57:37+00:00Added an answer on May 13, 2026 at 8:57 am

    HTML:

    <div id="weathermap">
        <a class="point pos1" href="/city_1" title="City One"><span class="hide">City one</span><span class="dot">.</span></a>
        <a class="point pos2" href="/city_2" title="City Two"><span class="hide">City two</span><span class="dot">.</span></a>
        <img src="weather.jpg" alt="Weather Map" />
    </div>
    

    CSS:

        #weathermap {
            position: relative;
            padding: 0;
        } 
    
        .point {
            position: absolute;
            line-height: 16px;
        }
    
        span.hide {
            display: none; // Don't show 'city one' on the map
        }
    
        span.dot {
            display: block;
            // This background picture is a simple marker of 16px by 16px
            background: transparent url(marker.png) no-repeat scroll center center;
            width: 16px;
            height: 16px;
            text-indent: -9999px; //Remove the dot to replace it with a marker
        }
    
        .pos1 {
            top: 50px;
            left: 100px;
        }
    
        .pos2 {
            top: 120px;
            left: 10px;
        }
    

    To add another city, just add another <a ...> to your HTML and give it another classname, like pos3. Then you can add .pos3 to you CSS-code and change the coordinates with top and left values

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to get the temperature value from Yahoo's weather API. I have
I have to add a weather widget to a website whose markup is a
How do we add the weather overlay option to a Google map, just like
I'm trying to find out weather I can do this or not. I have
in my app I want to have a searchbar like in the weather app
I have weather forecast data formatted like so: loc_id#location#state#forecast_date#issue_date#issue_time#min_0#max_0#min_1#max_1#min_2#max_2#min_3#max_3#min_4#max_4#min_5#max_5#min_6#max_6#min_7#max_7#forecast_0#forecast_1#forecast_2#forecast_3#forecast_4#forecast_5#forecast_6#forecast_7# 090180#Airey's Inlet#VIC#20091204#20091204#161830###12#19#12#21#12#19#12#17#11#20#12#20#11#17#Mostly clear.#Shower or two.#Light
I have a JavaScript in the view but it's not executing again after loading
I have a table like this: date day weather 2000-01-01 Monday Sunny 2000-01-02 Tuesday
I have a mySQL table to indicate weather the shop is open or closed,
I am trying to validate weather the connection was successful but have been getting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.