Uncaught Type Error on Creating Modest Map

Asked By 0 points N/A Posted on -
qa-featured

I found a site with URL: http://mapbox.github.io/wax/. This site is using Wax to put maps on the internet. I am trying to create a modest map but I am getting an error that says: “Uncaught TypeError: Cannot read property 'style' of null' (in line 1003 modestmaps.js)” I followed the directions in the site from getting a copy of Wax to getting all the requirements needed. But how can I fix the error that I am encountering? Please help.

SHARE
Answered By 10 points N/A #156350

Uncaught Type Error on Creating Modest Map

qa-featured

That kind of error is most commonly caused by the  ID or element that you provide for  the com.modestmaps constructor, which in your case should by invalid and therefore causing the error that you are getting. The ID that you are using does not correspond to something on the page that you are trying to access, and therefore causing the error that you have posted above. What you will need to do it check the code in the wax application that you are using. When changing the codes you will need to be cautious of the parts of the Wax application that you are working with because some changes may result into more problems.

-Thompson Locker

 

Related Questions