Several examples is no longer working #100

Closed
pixelfreak opened this Issue Feb 9, 2012 · 3 comments

Projects

None yet

3 participants

@pixelfreak

The hurricane example along with some other examples don't work anymore :(

It actually seems to be working in Firefox. However, in Safari and Chrome it is not. I'm getting this error:

Uncaught Error: NOT_FOUND_ERR: DOM Exception 8

The first example in the Wiki (A Map requires a DOM element, layer...) is also failing for me for the same reason.

The problem seems to be starting on line 2639. When the child div is being appending the the parent.

// put the given layer on top of all the others
addLayer: function(layer) {
    this.layers.push(layer);
    this.parent.appendChild(layer.parent);
    layer.map = this; // TODO: remove map property from MM.Layer?
    return this;
},

Wrapping TemplatedMapProvider in the Layer method fixes this issue. This should probably be a separate ticket.

@tmcw tmcw added a commit that referenced this issue Feb 15, 2012
@tmcw tmcw Fix hurricanes example. Refs #100 044b192
Contributor
tmcw commented Feb 15, 2012

Hey @pixelfreak - just fixed the hurricanes example. What other examples are you seeing break?

@tmcw Looks like they are all fixed now. I'll let you know if I see anything else. Thanks!

@pixelfreak pixelfreak closed this Feb 15, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment