Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am new to openlayers. I tried this example. I have published world shapefile to tiger workspace as 'country' layer to geoserver and want to access with WMS. The world map is getting displayed in IE on Windows XP but not in IE of Windows 6 mobile emulator. I am able to access geoserver's admin page on my PC from the mobile emulator so network connection may not be issue. Kindly suggest anything I am missing.

<html>
<head>
  <title>OpenLayers Example</title>
    <script src="http://host IP address:8080/geoserver/OpenLayers.js"></script>
    </head>
    <body>
      <div style="width:100%; height:100%" id="map"></div>
      <script defer="defer" type="text/javascript">
        var map = new OpenLayers.Map('map');
        var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
            "http://host IP address:8080/wms", {layers: 'tiger:country'} );
        map.addLayer(wms);
        map.zoomToMaxExtent();
      </script>

</body>
</html>
share|improve this question
1  
did u try to use mobile version of openlayers? –  Aragon Jun 22 '12 at 10:09
    
I have downloaded examples for mobile from these sites:openlayers.org/dev/examples/mobile.html,openlayers.org/dev/examples/mobile‌​-jq.html.openlayers.js is in the corresponding subfolder e.g. mobile_files formobile.html. Is there a specific version of openlayers for mobile that I need to download & reference? If so, please provide the link/website. –  Lakshmi Jun 23 '12 at 11:32
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.