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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:13:26+00:00 2026-05-25T06:13:26+00:00

Is there a way to create a simple marker or layer from html. I

  • 0

Is there a way to create a simple marker or layer from html. I think about a circle that will be animated with css3. The circle itself is just a div with rounded corners.

  • 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-25T06:13:27+00:00Added an answer on May 25, 2026 at 6:13 am

    Ok, seems that Custom Overlays will do what I want. This is ping layer:

        function PingLayer(bounds, map) {
            this.bounds = bounds;
            this.setMap(map);
        }
    
        PingLayer.prototype = new google.maps.OverlayView();
    
        PingLayer.prototype.onAdd = function() {
            var div = document.createElement('DIV');
            div.className = "ping";
            this.getPanes().overlayLayer.appendChild(div);
            div.appendChild(document.createElement("DIV"))
            this.div = div;
    
            setTimeout(function(){div.className += " startPing"}, 10);
        }
    
        PingLayer.prototype.draw = function() {
    
            var overlayProjection = this.getProjection();
            var sw = overlayProjection.fromLatLngToDivPixel(this.bounds.getSouthWest());
            var ne = overlayProjection.fromLatLngToDivPixel(this.bounds.getNorthEast());
            var div = this.div;
            div.style.left = sw.x - 60 + 'px';
            div.style.top = ne.y - 65 + 'px';
        }
    

    This is the way to add em to the map:

     var swBound = new google.maps.LatLng(lat, lng);
     var neBound = new google.maps.LatLng(lat, lng);
     var bounds = new google.maps.LatLngBounds(swBound, neBound);   
     new PingLayer(bounds, map);
    

    And this is CSS that does the animation:

    .ping {
        position: absolute;
        width: 100px;
        height: 100px;
    }
    .ping div {
        top: 50px;
        left: 50px;
        position: relative;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        -moz-border-radius: 50%;
        -webkit-border-radius: 50%;
        background: none;
        border: solid 5px #000;
        text-align: center;
        font-size: 20px;
        color: #fff;
        -moz-transition-property: width, height, top, left, opacity;
    
        -moz-transition-duration: 2s;
    
    }
    
    .ping.startPing div{
        width: 100px;
        height: 100px;
        top: 0;
        left: 0;
        opacity: 0;
        -moz-transition-duration: 2s;
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

is there a way to create a standalone executable from a simple lua scripts?
Is there a simple way to create a copy of a database or schema
Is there a way to create an html link using h:outputLink, other JSF tag
Is there a way to create C# objects and call methods from unmanaged C++,
Is there any way to create a simple timeline of events with Google Charts?
Is there any simple way to create a GUI using OpenCV library or linking
Is there any way I can create simple start page for OpenXava. I mean
is there a simple way to create a command-line tool in Objective C? I'd
Is there an easy way to create vertical dividers between HTML table columns? I
Simply put, is there a way to create a 2D javascript array using similar

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.