Mapbox and enyo 2.x

Hello, I try show a map in enyo, I take the API from mapbox. I don't know how insert a map without use an iframe.
for example http://mupos.webcindario.com/principal/index.html

but, I want do without iframe.

the code of the reference is the next https://www.mapbox.com/mapbox.js/example/v1.0.0/

and I try this.

html

<!DOCTYPE html>



Mupos




body { margin:0; padding:0; } #map { position:absolute; top:0; bottom:0; width:100%; } .map { position:absolute; top:0; bottom:0; width:100%; } new App().write();


source
enyo.kind({ name: 'MapBox', kind: 'Control', events: { onMapCreated: '' }, components: [ {tag:'div',id:"map", name: 'map', classes: 'map', allowHtml:true, content:"example"} ], //* @protected create: function() { this.inherited(arguments); this.load(); }, load: function() { var map = L.mapbox.map('map', 'examples.map-9ijuk24y').setView([40, -74.50], 9); } }); enyo.kind({ name: "App", kind: "MapBox", });

After running, the map is not displayed.
What can be happening?

Thanks.

Comments

Sign In or Register to comment.