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

  • Home
  • SEARCH
  • 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 6014815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:44:50+00:00 2026-05-23T02:44:50+00:00

I have created a sample here to show the issue…. http://bit.ly/j2nb1k The code is

  • 0

I have created a sample here to show the issue….

http://bit.ly/j2nb1k

The code is js so you can see it in full. In any modern browser including IE9 it works fine. But I get an annoying “undefined is null or not an object” if you load this in IE8 or below.

What am I missing here?

Source below…

var map;
  function initialize() {

    var latlng = new google.maps.LatLng(51, -1);
    var myOptions = {
      zoom: 2,
      center: latlng,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    };
    map = new google.maps.Map(document.getElementById("map_canvas"),
        myOptions);

   vaacinit();
  }

function vaacinit() {  
  var FL150 = [new google.maps.LatLng(-43.568055555556,75.833333333333),
new google.maps.LatLng(-59.384722222222,74.734722222222),
new google.maps.LatLng(-64.668055555556,88.25),
new google.maps.LatLng(-65.901388888889,133.58472222222),
new google.maps.LatLng(-59.35,131.23333333333),
new google.maps.LatLng(-55.918055555556,92.368055555556),
new google.maps.LatLng(-43.568055555556,75.833333333333),
];drawPoly(FL150,'#848484');
var FL200 = [new google.maps.LatLng(-54.7,90.533333333333),
new google.maps.LatLng(-60,158.23472222222),
new google.maps.LatLng(-59.333333333333,160.00138888889),
new google.maps.LatLng(-34.684722222222,160.58472222222),
new google.maps.LatLng(-40.5,150.5),
new google.maps.LatLng(-40.518055555556,145.86805555556),
new google.maps.LatLng(-38.2,144.7),
new google.maps.LatLng(-37,139.35),
new google.maps.LatLng(-35.85,129.33333333333),
new google.maps.LatLng(-39.333333333333,117.03472222222),
new google.maps.LatLng(-38.233333333333,110.06666666667),
new google.maps.LatLng(-29.418055555556,104.73333333333),
new google.maps.LatLng(-30.551388888889,90.501388888889),
new google.maps.LatLng(-54.7,90.533333333333),
];drawPoly(FL200,'#848484');
var well = [new google.maps.LatLng(-34.666666666667,160),
new google.maps.LatLng(-34.666666666667,172.38333333333),
new google.maps.LatLng(-40.568055555556,-160),
new google.maps.LatLng(-50.518055555556,-140.56805555556),
new google.maps.LatLng(-61.216666666667,-119.35138888889),
new google.maps.LatLng(-71.166666666667,-128.23472222222),
new google.maps.LatLng(-70.55,-150),
new google.maps.LatLng(-52.401388888889,-177.01805555556),
new google.maps.LatLng(-59.333333333333,160),
new google.maps.LatLng(-34.666666666667,160),
];drawPoly(well,'#848484');   





 }


function drawPoly(polyCoords,passedColor){

 var thisPoly;
 var thisPolyCoords = polyCoords;

 thisPoly = new google.maps.Polygon({
    paths: thisPolyCoords,
    strokeColor: passedColor,
    strokeOpacity: 0.8,
    strokeWeight: 2,
    fillColor: passedColor,
    fillOpacity: 0.35
  });

  thisPoly.setMap(this.map);

 }
  • 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-23T02:44:51+00:00Added an answer on May 23, 2026 at 2:44 am

    Your arrays end in commas – which is not valid and will throw off versions of IE

    For example, compare:

    var notValidArray = [1,2,3,];
    

    vs

    var validArray = [1,2,3];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have integrated the sample code as provided in here to know how the
I have the following code in javascript: <script type=text/javascript src=#{facesContext.externalContext.requestContextPath}/js/sample-points.js></script> <script type=text/javascript>//<![CDATA[ var cloudmade
I have created a simple wcf service which used the WCF Service Library template.
I have created a simple grid of divs by left floating them and an
I have created a simple Asp.Net custom control which automatically combines all the correct
I have a simple GtkStatusBar created with glade,and want to add a simple message
Have created a c++ implementation of the Hough transform for detecting lines in images.
I have a sample form with 3 windows. Each window has a label and
I have a requirement to create a simple database in Access to collect some
I have a simple PowerShell script that uses WMI to create a web site

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.