Welcome, Guest! Log In | Create Account

This is the FAQ page for GWT-OpenLayers.

Q. Why do I get this error:

com.google.gwt.core.client.JavaScriptException: (TypeError): $wnd.OpenLayers has no properties

A: At present, OpenLayers is not included in the GWT-OpenLayers module, so you have to make sure to include OpenLayers in your project. GWT-OpenLayes is compatible with OpenLayers 2.4 and up, but using OpenLayers 2.7 is adviced. There are at least two ways in which OpenLayers can be included in your GWT project.
- in the head tag of your application html
- in the GWT module xml

To include OpenLayers in the head tag of your application html do:

<html>
<head>
  ...
  <script src="YOUR_PATH_HERE/OpenLayers.js" type="text/javascript"></script>
</head>
...
</html>

To include OpenLayers in your GWT module xml do:

<module>
...
 <script src="YOUR_PATH_HERE/OpenLayers.js"/>
...
</module>

See also "Automatic resource inclusion" in the GWT documentation on how to link javascript files via the GWT module xml.


Q. How do I integrate gwtopenlayers in smartgwt

A. See this thread


Q. When using EditToolbar why do I get this browser error in the hosted browser and how can I fix it:

our browser does not support vector rendering. Currently supported renderers are:
SVG
VML
Canvas

A.


Q. Why does my MapWidget get invisible when I resize my SmartGWT app? The MapWidget is inside a SmartGWT Canvas.


A.


Q.

A.