[OpenLayers-Dev] Multiple js api import problem
Eric Lemoine
eric.c2c at gmail.com
Wed Dec 5 00:46:53 EST 2007
On Dec 4, 2007 10:26 AM, li ethan <ethan919 at gmail.com> wrote:
> Dear listers!
> I'm trying to using Dojo api to draw some of GUI widgets,and I got a
> problem of import them with OpenLayers.
> I used these lines to import js files in the <head> :
> <script type="text/javascript"src="javascript/OpenLayers-
> 2.5/lib/OpenLayers.js"></script>
>
> <style type="text/css">
> @import
> "javascript/dojo-release-1.0.1/dijit/themes/tundra/tundra.css";
> @import "javascript/dojo-release-1.0.1/dojo/resources/dojo.css"
> </style>
> <script type="text/javascript"
> src="javascript/dojo-release-1.0.1/dojo/dojo.js"
> djConfig="parseOnLoad: true"></script>
>
> when I first import OpenLayers.js,then dojo.js, dojo wouldn't work.And if I
> import dojo.js first,then OpenLayers.js,OpenLayers wouldn't work.
> It seems like the relative path has been changed when loading one of these
> files.Can anyone tell me how to fix this problem?Thanks in advance!
Do you see the problem on FireFox 2?
In MapFish, we used to mix OpenLayers and Dojo and we had problems of
that sort. See <http://trac.mapfish.org/trac/mapfish/browser/trunk/MapFishSample/mapfishsample/public/examples/search/c2corg.html>
for a workaround. For the record, we no longer use Dojo and have
switched to Ext.
Cheers,
--
Eric
More information about the Dev
mailing list