<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <span><span> </span>You forgot the comma in the json object.<br>
      <br>
      var map = new OpenLayers.Map('map', {</span>
    <p><span><span>                                                </span>maxExtent:

        new OpenLayers.Bounds(545130525,258147752,546437807,259455034),</span></p>
    <p><span><span>                                                </span>maxResolution:

        5000 </span></p>
    <p><span><span>                                                </span>}
        );</span></p>
    <br>
    <br>
    Am 30.06.2010 08:35, schrieb Kalyan Kamepalli:
    <blockquote
      cite="mid:AANLkTilEsraXNyQh3Hd1qRIweGzDNYZl8T7fDGb5K37t@mail.gmail.com"
      type="cite">
      <meta http-equiv="Context-Type" content="text/html; charset=UTF-8">
      <div>
        <p><span>Hi Christopher, </span></p>
        <p><span> </span></p>
        <p><span>I did replace my map creation with your bit of code and
            that didn’t help me. My browser turn up with an error saying
            expected ‘}’. I just couldn’t find where did I miss that
            one. Here’s my code </span></p>
        <p><span> </span></p>
        <p><span>&lt;script type="text/javascript"&gt;</span></p>
        <p><span><span>            </span>//var map = new
            OpenLayers.Map('map',{maxResolution: 1000} );</span></p>
        <p><span><span>            </span>var map = new
            OpenLayers.Map('map', {</span></p>
        <p><span><span>                                                </span>maxExtent:
            new
            OpenLayers.Bounds(545130525,258147752,546437807,259455034)</span></p>
        <p><span><span>                                                </span>maxResolution:
            5000 </span></p>
        <p><span><span>                                                </span>}
            );</span></p>
        <p><span><span>            </span>var wmscURL = [</span></p>
        <p><span><span>                        </span>"<a
              moz-do-not-send="true"
href="http://BECKS:8080/gss/ogc?version=1.3.0&amp;crs=sw:uk_british_national_grid_mm">http://BECKS:8080/gss/ogc?version=1.3.0&amp;crs=sw:uk_british_national_grid_mm</a>"</span></p>
        <p><span><span>                        </span>];</span></p>
        <p><span><span>                        </span>var
            smallworldLayer = new OpenLayers.Layer.WMS( 'Cambridge
            Steet' , wmscURL , { layers: '' , format: 'image/jpeg'} , {
            buffer: 1 , isBaseLayer: true } );</span></p>
        <p><span><span>                        </span>map.addLayer(
            smallworldLayer );</span></p>
        <p><span><span>                        </span>map.zoomToMaxExtent();<span>                      
            </span></span></p>
        <p><span>&lt;/script&gt;</span></p>
        <p><span> </span></p>
        <br>
        <br>
        <br>
        <div>On Wed, Jun 30, 2010 at 4:08 PM, <span>&lt;<a
              moz-do-not-send="true"
              href="mailto:christopher.schmidt@nokia.com">christopher.schmidt@nokia.com</a>&gt;</span>
          wrote:<br>
          <blockquote>
            <div><br>
              On Jun 30, 2010, at 1:58 AM, ext Kalyan Kamepalli wrote:<br>
              <br>
              &gt; Yahoo !! I made some progress,<br>
              &gt;<br>
              &gt; I actually didn’t know that I have to create a layer
              for the map object. I now created one later and added it
              to map object. Excellent. It worked. I got my map. But, I
              am not happy with the quality/resolution of the map. I
              then set the maxResolution property of the map from 0.73
              to 1. That didn’t help me either. Is there anything else I
              should do to improve it’s quality ? The same WMS direct
              call results in a high quality map from my server.<br>
              <br>
            </div>
            Remove the width, height, and bbox from your URL. then
            change your map creation to:<br>
            <br>
             Map('map', {<br>
                   maxExtent: new
            OpenLayers.Bounds(545130525,258147752,546437807,259455034)<br>
                   maxResolution: 5000<br>
             });<br>
            <br>
            Your Layer URL should then look like:<br>
            <br>
             "<a moz-do-not-send="true"
href="http://localhost:8080/gss/ogc?version=1.3.0&amp;crs=sw:uk_british_national_grid_mm">http://localhost:8080/gss/ogc?version=1.3.0&amp;crs=sw:uk_british_national_grid_mm</a>"<br>
            <br>
            Does the behavior improve?<br>
            <br>
            -- Chris<br>
            <div>
              <div><br>
                &gt; Any help is greatly appreciated.<br>
                &gt;<br>
                &gt; Thanks,<br>
                &gt; Kalyan<br>
                &gt;<br>
                &gt;<br>
                &gt; On Wed, Jun 30, 2010 at 1:41 PM, Kalyan Kamepalli
                &lt;<a moz-do-not-send="true"
                  href="mailto:kalyan.kamepalli@gmail.com">kalyan.kamepalli@gmail.com</a>&gt;
                wrote:<br>
                &gt; Hi group,<br>
                &gt;<br>
                &gt; I do have a WMS service with my product, I am
                actually trying to use Smallworld Geospatial Server with
                WMS service. I just found one example using WMS service
                and trying to edit it to work with my service call. I
                changed the script section as follows<br>
                &gt;<br>
                &gt; &lt;script type="text/javascript"&gt;<br>
                &gt;             var map = new
                OpenLayers.Map('map',{maxResolution: 0.703125} );<br>
                &gt;             var wmscURL = [<br>
                &gt;                         "<a moz-do-not-send="true"
href="http://localhost:8080/gss/ogc?request=GetMap&amp;service=WMS&amp;version=1.3.0&amp;width=600&amp;height=600&amp;format=image/jpeg&amp;bbox=545130525,258147752,546437807,259455034&amp;crs=sw:uk_british_national_grid_mm">http://localhost:8080/gss/ogc?request=GetMap&amp;service=WMS&amp;version=1.3.0&amp;width=600&amp;height=600&amp;format=image/jpeg&amp;bbox=545130525,258147752,546437807,259455034&amp;crs=sw:uk_british_national_grid_mm</a>"<br>
                &gt;                                                 //"<a
                  moz-do-not-send="true"
                  href="http://wmsc1.terrapages.net/getmap">http://wmsc1.terrapages.net/getmap</a>?",<br>
                &gt;                                                 //"<a
                  moz-do-not-send="true"
                  href="http://wmsc2.terrapages.net/getmap">http://wmsc2.terrapages.net/getmap</a>?",<br>
                &gt;                                                 //"<a
                  moz-do-not-send="true"
                  href="http://wmsc3.terrapages.net/getmap">http://wmsc3.terrapages.net/getmap</a>?",<br>
                &gt;                                                 //"<a
                  moz-do-not-send="true"
                  href="http://wmsc4.terrapages.net/getmap">http://wmsc4.terrapages.net/getmap</a>?"<br>
                &gt;                                                 ];<br>
                &gt;             //var terrapagesStreetLayer = new
                OpenLayers.Layer.WMS( 'TerraPages Street',wmscURL,
                {layers: 'UnprojectedStreet', format: 'image/jpeg' },
                {buffer: 1, isBaseLayer: true} );<br>
                &gt;             //map.addLayer(terrapagesStreetLayer);<br>
                &gt;             map.zoomToMaxExtent();<br>
                &gt; &lt;/script&gt;<br>
                &gt;<br>
                &gt; As I don’t want to display any other map, I
                commented those 4 map requests and included my request.
                But, It doesn’t give me any map. What could be reason
                for that ??<br>
                &gt; If I use the same URL directly from a browser, I
                could see a map.  Is there something I am missing ? or
                is it not the way to call a map service ??<br>
                &gt;<br>
                &gt; Thanks,<br>
                &gt; Kalyan<br>
                &gt;<br>
                &gt; On Tue, Jun 29, 2010 at 5:05 PM, Zac Spitzer &lt;<a
                  moz-do-not-send="true"
                  href="mailto:zac.spitzer@gmail.com">zac.spitzer@gmail.com</a>&gt;
                wrote:<br>
                &gt; have a look thru the examples<br>
                &gt;<br>
                &gt; <a moz-do-not-send="true"
                  href="http://www.openlayers.org/dev/examples/">http://www.openlayers.org/dev/examples/</a><br>
                &gt;<br>
                &gt; that should be a good starting point, use view
                source to see how things are done<br>
                &gt;<br>
                &gt; z<br>
                &gt;<br>
                &gt; On 29 June 2010 13:44, Kalyan Kamepalli &lt;<a
                  moz-do-not-send="true"
                  href="mailto:kalyan.kamepalli@gmail.com">kalyan.kamepalli@gmail.com</a>&gt;
                wrote:<br>
                &gt; &gt; Hello Everyone,<br>
                &gt; &gt;<br>
                &gt; &gt;<br>
                &gt; &gt;<br>
                &gt; &gt; I am new to Java Script and thus Open Layers.
                I have an application server<br>
                &gt; &gt; that provides a map service and many other
                services like select, zoom in<br>
                &gt; &gt; zoom out.I wanted to map them on to Open
                layers and finally embed open<br>
                &gt; &gt; layers on to a website. The map service is an
                XML based and it generates an<br>
                &gt; &gt; XML response.I also have WMS services that
                respond in WMS format.<br>
                &gt; &gt;<br>
                &gt; &gt;<br>
                &gt; &gt;<br>
                &gt; &gt; Could someone share me the procedure to make
                the above process to work<br>
                &gt; &gt; please. I know a bit of Java Script. Like how
                it works and how to code in it<br>
                &gt; &gt; and the function,Object structure of it. But,
                I never worked on it.<br>
                &gt; &gt;<br>
                &gt; &gt;<br>
                &gt; &gt;<br>
                &gt; &gt; Regards,<br>
                &gt; &gt;<br>
                &gt; &gt; Kalyan<br>
                &gt; &gt;<br>
                &gt; &gt;<br>
                &gt; &gt;<br>
                &gt; &gt;
                _______________________________________________<br>
                &gt; &gt; Users mailing list<br>
                &gt; &gt; <a moz-do-not-send="true"
                  href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
                &gt; &gt; <a moz-do-not-send="true"
                  href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a><br>
                &gt; &gt;<br>
                &gt; &gt;<br>
                &gt;<br>
                &gt;<br>
                &gt;<br>
                &gt; --<br>
                &gt; Zac Spitzer<br>
                &gt; Solution Architect / Director<br>
                &gt; Ennoble Consultancy Australia<br>
                &gt; <a moz-do-not-send="true"
                  href="http://www.ennoble.com.au/">http://www.ennoble.com.au</a><br>
                &gt; <a moz-do-not-send="true"
                  href="http://zacster.blogspot.com/">http://zacster.blogspot.com</a><br>
                &gt; +61 405 847 168<br>
                &gt;<br>
                &gt;<br>
              </div>
            </div>
            &gt; &lt;ATT00001..txt&gt;<br>
            <br>
            Regards,<br>
            --<br>
            Christopher Schmidt<br>
            Nokia<br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@openlayers.org">Users@openlayers.org</a>
<a class="moz-txt-link-freetext" href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
-----------------------------------------------
Slawomir Messner
Forschungszentrum "Deutscher Sprachatlas"
06421-28-24981</pre>
  </body>
</html>