chellymehdi / vopenlayers

Automatically exported from code.google.com/p/vopenlayers
0 stars 0 forks source link

GoogleStreetMapLayer error #133

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Create GoogleStreetMapLayer
2.Add layer to map
3. run application

What is the expected output? What do you see instead?
A layer in map whith google map

What version of the product are you using? On what operating system?
Vaadin 6.7.9
OpenLayer wrapper 1.3.1

Please provide any additional information below.
In debug mode the app return this error 

JavaScriptException: (ReferenceError): google is not defined
 stack: ReferenceError: google is not defined
    at Object.OpenLayers.Layer.Google.v3.loadMapObject (http://openlayers.org/api/2.12/OpenLayers.js:1060:478)
    at Object.OpenLayers.Layer.EventPane.OpenLayers.Class.setMap (http://openlayers.org/api/2.12/OpenLayers.js:230:372)
    at Object.OpenLayers.Map.OpenLayers.Class.addLayer (http://openlayers.org/api/2.12/OpenLayers.js:182:156)
    at N6b (http://localhost:8080/SupervisorModule/VAADIN/widgetsets/com.ansaldosts.sic.widgetset.SupervisormoduleWidgetset/3CC8A2EAE151CD9A7435CEC0314F4304.cache.html:1861:57)
    at Object.P1b [as fg] (http://localhost:8080/SupervisorModule/VAADIN/widgetsets/com.ansaldosts.sic.widgetset.SupervisormoduleWidgetset/3CC8A2EAE151CD9A7435CEC0314F4304.cache.html:3414:19584)
    at O1b (http://localhost:8080/SupervisorModule/VAADIN/widgetsets/com.ansaldosts.sic.widgetset.SupervisormoduleWidgetset/3CC8A2EAE151CD9A7435CEC0314F4304.cache.html:3223:181)
    at Object.U1b [as he] (http://localhost:8080/SupervisorModule/VAADIN/widgetsets/com.ansaldosts.sic.widgetset.SupervisormoduleWidgetset/3CC8A2EAE151CD9A7435CEC0314F4304.cache.html:3414:19856)
    at Object.h4b [as he] (http://localhost:8080/SupervisorModule/VAADIN/widgetsets/com.ansaldosts.sic.widgetset.SupervisormoduleWidgetset/3CC8A2EAE151CD9A7435CEC0314F4304.cache.html:3417:721)
    at VLb (http://localhost:8080/SupervisorModule/VAADIN/widgetsets/com.ansaldosts.sic.widgetset.SupervisormoduleWidgetset/3CC8A2EAE151CD9A7435CEC0314F4304.cache.html:3374:995)
    at YX (http://localhost:8080/SupervisorModule/VAADIN/widgetsets/com.ansaldosts.sic.widgetset.SupervisormoduleWidgetset/3CC8A2EAE151CD9A7435CEC0314F4304.cache.html:3372:653)

Original issue reported on code.google.com by vinc....@gmail.com on 2 May 2014 at 3:22

GoogleCodeExporter commented 8 years ago
To me it looks like you haven't included gmaps scripts. Add them to your host 
page somehow, eg with script tag in your .gwt.xml file. The test directory in 
the source code contains one example.

Original comment by matti.ta...@gmail.com on 8 May 2014 at 12:52

GoogleCodeExporter commented 8 years ago
It works. Thanks. :-)

Original comment by vinc....@gmail.com on 15 May 2014 at 2:20