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 8912603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:14:38+00:00 2026-06-15T04:14:38+00:00

Recently I got a task that is to draw circles on my own website

  • 0

Recently I got a task that is to draw circles on my own website with Google Maps API.
The complexity is the center of the circle is representing a “signal transmitter” and I need to make the circle transparent, with the opacity of each pixel reprseting the signal intensity of the exact location.

My basic idea is to extend the “Overlay” of Google Map API, so I have to write it in javascript I think.

The key part is to draw a circle with gradually changing opacity (inner stronger, outter lighter) and idealy, I can specify the opacity of each pixel.

I’ve been looking for approaches like CSS3, SVG, VML and even jquery and AJAX but still having no idea about how to archve this.

Thank you very much for your helping!

  • 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-06-15T04:14:41+00:00Added an answer on June 15, 2026 at 4:14 am

    Here I got the solution. It’s making use of the Canvas element of HTML5 (which is widely supported).

    Here is the javascript code for locating the canvas element and draw the circle with gradually changing transparency. The key part is to use the “Gradient”.

    //get a reference to the canvas
    var ctx = $('#canvas')[0].getContext("2d");
    
    
    //draw a circle
    gradient = ctx.createRadialGradient(200, 200, 0, 200, 200, 200);
    gradient.addColorStop("0", "blue");
    gradient.addColorStop("1.0", "transparent");
    ctx.fillStyle = gradient;
    
    //ctx.beginPath();
    ctx.arc(200, 200, 200, 0, Math.PI*2, true); 
    //ctx.closePath();
    ctx.fill();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently got an email from a customer saying that they were getting errors
I recently got a new printer (specifically a HP Photosmart C6380 if that helps)
I recently got hired as a web developer, and the project that I am
We recently got a call from one of our clients, complaining that their site
I recently got assigned a task to convert a few algorithms written in matlab
I recently got help on When select value from combo, highlight that record in
I've recently been given a task that involves uploading a zip file, storing it
I have got the the next task recently: increment the version of the sharepoint
I recently got a job in a web newspaper. In the website, we have
Just recently got into experimenting with NLog, and it occurs to me that I

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.