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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:05:56+00:00 2026-06-17T10:05:56+00:00

I have the following code for a route where an animation goes on, so

  • 0

I have the following code for a route where an animation goes on, so i need the polyline but i don’t want to show it:

[..]
    this.polyline = new google.maps.Polyline({
                path: [],
                strokeColor: '#ffffff',
                strokeWeight: 0
            });
[..]

The polyline is shown with that code. But i want to make the polyline transparent – not visible! How can i do it?

I set the strokeColor to “transparent” – what doesnt work, either not when i remove the option completely. I also set the strokeWeight to 0 – but these parameters have no effect. I tried also strokeOpacity from 0.0 to 1.0 – also no effect. Knows someone a solution? – PS: when i change the color to #ff0000 the color should be red, right? but it seems to be that the options doesn’t work at all – but the polyline is shown and i have no JavaScript errors in the console.log…?

Here the link to the reference with nearly the same example…

  • 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-17T10:05:57+00:00Added an answer on June 17, 2026 at 10:05 am

    This works for me:

        var flightPath = new google.maps.Polyline({
          path: flightPlanCoordinates,
          strokeColor: '#FF0000',
          strokeOpacity: 0.00001,
          strokeWeight: 0
        });
    

    For some unknown reason strokeOpacity: 0.0 doesn’t work.

    Simple polyline example from the Google Maps API v3 documentation

    same code with a transparent polyline

    Similar question about transparent polylines on FusionTablesLayers

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

Sidebar

Related Questions

I have the following code, but it doesn't display the route button. MPVolumeView *volumeView
i'm new to routing in aspnet mvc.. i have following code: Action Controller public
I have the following code, using Django ORM routes =Routes.objects.filter(scheduleid=schedule.id).only('externalid') t_list = [(route.externalid, route.vehicle.name)
I am new to JavaScript/jQuery. I have the following HTML code that's automatically generated
I have the following code in my application helper. route = ActionController::Routing::Routes.recognize_path(current_uri) controller =
I have the following code: $r->find('user')->via('post')->over(authenticated => 1); Given that route I can get
I have the following code using normal Zend routing and I need to convert
I have the following code: Url.Action(Index, Home, new {param1 = Model.Param1, param2 = Model.Param2}
If I have the following code for my state: var year = this.get('year').get('number'); var
I have the following code: $routes = array( 'twitter_output' => new Zend_Controller_Router_Route( 'twitter/:username\.:format', array('controller'

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.