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

but, I want do without iframe.

the code of the reference is the next

and I try this.


<!DOCTYPE html>


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();

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 ='map', '').setView([40, -74.50], 9); } }); enyo.kind({ name: "App", kind: "MapBox", });

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



Sign In or Register to comment.