chellymehdi / vopenlayers

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

OpenStreetMapLayer and GoogleStreetMapLayer doesnot work for me #60

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
When i compile openlayers-wrapper-0.9.2-SNAPSHOT.jar to get the required 
widgetsets , then i got the widgetset directory and another widgetset-deploy 
directory under WebContent/VAADIN/widgetsets directory. I copied them to my 
project's widgetset folder. The gwt.xml file generated during compilation has 
the following configuration.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.7.0//EN" 
"http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-source/core/src/
gwt-module.dtd">
<module>
    <inherits name="com.vaadin.terminal.gwt.DefaultWidgetSet" />

    <!--
     Uncomment the following to compile the widgetset for one browser only.
     This can reduce the GWT compilation time significantly when debugging.
     The line should be commented out before deployment to production
     environments.

     Multiple browsers can be specified for GWT 1.7 as a comma separated
     list. The supported user agents at the moment of writing were:
     ie6,ie8,gecko,gecko1_8,safari,opera

     The value gecko1_8 is used for Firefox 3 and later and safari is used for
     webkit based browsers including Google Chrome.
    -->
    <!-- <set-property name="user.agent" value="gecko1_8"/> -->

    <inherits name="org.vaadin.vol.VolWidgetsetWithHostedScript" />
</module>

I copied this to source directory where my java code to access 
OpenStreetMapLayer and GoogleStreetMapLayer is available. But both the layers 
has empty when i add them to OpenLayersMap as base layers.

Could you please let me know what changes required to get OpenStreetMapLayer  
to work?

What version of the product are you using? On what operating system?
I am using openlayers-wrapper-0.9.2-SNAPSHOT.jar with vaadin 6.7.3

Please provide any additional information below.

Original issue reported on code.google.com by santoshi...@gmail.com on 19 Mar 2012 at 11:17

GoogleCodeExporter commented 8 years ago
It only downloads helpers.js and OpenLayers.js at runtime. It doesnot download 
OpenStreetMap.js. Please let me know what should i do to access 
OpenStreetMapLayer as base layer. I am using vaadin with liferay.

Original comment by santoshi...@gmail.com on 19 Mar 2012 at 12:04

GoogleCodeExporter commented 8 years ago
With latest version you shouldn't need OpenStreetMap.js file at all. Things 
should just work. For Google maps you still need to add google maps api to the 
host page somehow.

If you need some hands on help, guidance or consultation on Vaadin related web 
map technology, I'd suggest to request help via http://vaadin.com/pro

Original comment by matti.ta...@gmail.com on 22 Mar 2012 at 7:53

GoogleCodeExporter commented 8 years ago

Original comment by matti.ta...@gmail.com on 22 Mar 2012 at 7:56