[OpenLayers-Users] OpenLayers Dojo widget
Arnaud Morvan
arnaud.morvan at abscisse-geomatique.fr
Tue Oct 14 03:38:53 EDT 2008
> Just out of curiosity, has anyone made a Dojo _Contained subclass that
> wraps an OpenLayers Map?
>
I've use OpenLayers with Dojo and Symfony, I've put the map into a Dojo
container, but I have made nothing particular for that (not a subclass):
<style type="text/css">
@import "/js/dojo-release-1.1.1/dijit/themes/tundra/tundra.css";
@import "/js/dojo-release-1.1.1/dojo/resources/dojo.css"
</style>
<script type="text/javascript"
src="/js/OpenLayers-2.6/OpenLayers.js"></script>
<script type="text/javascript" src="/js/dojo-release-1.1.1/dojo/dojo.js"
djConfig="parseOnLoad: true, isDebug: true, usePlainJson:true"></script>
<script type="text/javascript">
dojo.require("dijit.layout.ContentPane");
function openMap() {
map = new OpenLayers.Map('map');
...
}
</script>
<body class="tundra" onLoad="openMap();">
...
<div id="map" dojoType="dijit.layout.ContentPane" region="center"
style="display:block; border:1px black solid;"></div>
...
</body>
More information about the Users
mailing list