<div dir="ltr"><br clear="all">
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-SIZE: 10pt; COLOR: #163c46; FONT-FAMILY: 'Segoe UI','sans-serif'; mso-bidi-font-size: 11.0pt">Thanks a heaps to both Christopher & Slawomir,</span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-SIZE: 10pt; COLOR: #163c46; FONT-FAMILY: 'Segoe UI','sans-serif'; mso-bidi-font-size: 11.0pt"> </span></p>
<div class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-SIZE: 10pt; COLOR: #163c46; FONT-FAMILY: 'Segoe UI','sans-serif'; mso-bidi-font-size: 11.0pt">I got the map and Christopher’s piece of code does the magic. It's now working the way I want it to be.</span></div>
<div class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-SIZE: 10pt; COLOR: #163c46; FONT-FAMILY: 'Segoe UI','sans-serif'; mso-bidi-font-size: 11.0pt"></span> </div>
<div class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><br> </div>
<div class="gmail_quote">On Wed, Jun 30, 2010 at 4:38 PM, Slawomir Messner <span dir="ltr"><<a href="mailto:slawomir.messner@staff.uni-marburg.de">slawomir.messner@staff.uni-marburg.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div text="#000000" bgcolor="#ffffff"><span><span></span>You forgot the comma in the json object.
<div class="im"><br><br>var map = new OpenLayers.Map('map', {</div></span>
<div class="im">
<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></div>Am 30.06.2010 08:35, schrieb Kalyan Kamepalli:
<div>
<div></div>
<div class="h5">
<blockquote type="cite">
<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><script type="text/javascript"></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 href="http://becks:8080/gss/ogc?version=1.3.0&crs=sw:uk_british_national_grid_mm" target="_blank">http://BECKS:8080/gss/ogc?version=1.3.0&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></script></span></p>
<p><span> </span></p><br><br><br>
<div>On Wed, Jun 30, 2010 at 4:08 PM, <span><<a href="mailto:christopher.schmidt@nokia.com" target="_blank">christopher.schmidt@nokia.com</a>></span> wrote:<br>
<blockquote>
<div><br>On Jun 30, 2010, at 1:58 AM, ext Kalyan Kamepalli wrote:<br><br>> Yahoo !! I made some progress,<br>><br>> 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 href="http://localhost:8080/gss/ogc?version=1.3.0&crs=sw:uk_british_national_grid_mm" target="_blank">http://localhost:8080/gss/ogc?version=1.3.0&crs=sw:uk_british_national_grid_mm</a>"<br>
<br>Does the behavior improve?<br><br>-- Chris<br>
<div>
<div><br>> Any help is greatly appreciated.<br>><br>> Thanks,<br>> Kalyan<br>><br>><br>> On Wed, Jun 30, 2010 at 1:41 PM, Kalyan Kamepalli <<a href="mailto:kalyan.kamepalli@gmail.com" target="_blank">kalyan.kamepalli@gmail.com</a>> wrote:<br>
> Hi group,<br>><br>> 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>
><br>> <script type="text/javascript"><br>> var map = new OpenLayers.Map('map',{maxResolution: 0.703125} );<br>> var wmscURL = [<br>> "<a href="http://localhost:8080/gss/ogc?request=GetMap&service=WMS&version=1.3.0&width=600&height=600&format=image/jpeg&bbox=545130525,258147752,546437807,259455034&crs=sw:uk_british_national_grid_mm" target="_blank">http://localhost:8080/gss/ogc?request=GetMap&service=WMS&version=1.3.0&width=600&height=600&format=image/jpeg&bbox=545130525,258147752,546437807,259455034&crs=sw:uk_british_national_grid_mm</a>"<br>
> //"<a href="http://wmsc1.terrapages.net/getmap" target="_blank">http://wmsc1.terrapages.net/getmap</a>?",<br>> //"<a href="http://wmsc2.terrapages.net/getmap" target="_blank">http://wmsc2.terrapages.net/getmap</a>?",<br>
> //"<a href="http://wmsc3.terrapages.net/getmap" target="_blank">http://wmsc3.terrapages.net/getmap</a>?",<br>> //"<a href="http://wmsc4.terrapages.net/getmap" target="_blank">http://wmsc4.terrapages.net/getmap</a>?"<br>
> ];<br>> //var terrapagesStreetLayer = new OpenLayers.Layer.WMS( 'TerraPages Street',wmscURL, {layers: 'UnprojectedStreet', format: 'image/jpeg' }, {buffer: 1, isBaseLayer: true} );<br>
> //map.addLayer(terrapagesStreetLayer);<br>> map.zoomToMaxExtent();<br>> </script><br>><br>> 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>
> 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>><br>> Thanks,<br>> Kalyan<br>><br>> On Tue, Jun 29, 2010 at 5:05 PM, Zac Spitzer <<a href="mailto:zac.spitzer@gmail.com" target="_blank">zac.spitzer@gmail.com</a>> wrote:<br>
> have a look thru the examples<br>><br>> <a href="http://www.openlayers.org/dev/examples/" target="_blank">http://www.openlayers.org/dev/examples/</a><br>><br>> that should be a good starting point, use view source to see how things are done<br>
><br>> z<br>><br>> On 29 June 2010 13:44, Kalyan Kamepalli <<a href="mailto:kalyan.kamepalli@gmail.com" target="_blank">kalyan.kamepalli@gmail.com</a>> wrote:<br>> > Hello Everyone,<br>> ><br>
> ><br>> ><br>> > I am new to Java Script and thus Open Layers. I have an application server<br>> > that provides a map service and many other services like select, zoom in<br>> > zoom out.I wanted to map them on to Open layers and finally embed open<br>
> > layers on to a website. The map service is an XML based and it generates an<br>> > XML response.I also have WMS services that respond in WMS format.<br>> ><br>> ><br>> ><br>> > Could someone share me the procedure to make the above process to work<br>
> > please. I know a bit of Java Script. Like how it works and how to code in it<br>> > and the function,Object structure of it. But, I never worked on it.<br>> ><br>> ><br>> ><br>> > Regards,<br>
> ><br>> > Kalyan<br>> ><br>> ><br>> ><br>> > _______________________________________________<br>> > Users mailing list<br>> > <a href="mailto:Users@openlayers.org" target="_blank">Users@openlayers.org</a><br>
> > <a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>> ><br>> ><br>><br>><br>><br>> --<br>> Zac Spitzer<br>> Solution Architect / Director<br>
> Ennoble Consultancy Australia<br>> <a href="http://www.ennoble.com.au/" target="_blank">http://www.ennoble.com.au</a><br>> <a href="http://zacster.blogspot.com/" target="_blank">http://zacster.blogspot.com</a><br>
> +61 405 847 168<br>><br>><br></div></div>> <ATT00001..txt><br><br>Regards,<br>--<br>Christopher Schmidt<br>Nokia<br><br></blockquote></div><br></div><pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<a href="mailto:Users@openlayers.org" target="_blank">Users@openlayers.org</a>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a>
</pre></blockquote><br><br></div></div><font color="#888888"><pre cols="72">--
-----------------------------------------------
Slawomir Messner
Forschungszentrum "Deutscher Sprachatlas"
06421-28-24981</pre></font></div><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br><a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>