<!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><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
moz-do-not-send="true"
href="http://BECKS:8080/gss/ogc?version=1.3.0&crs=sw:uk_british_national_grid_mm">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
moz-do-not-send="true"
href="mailto:christopher.schmidt@nokia.com">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 moz-do-not-send="true"
href="http://localhost:8080/gss/ogc?version=1.3.0&crs=sw:uk_british_national_grid_mm">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 moz-do-not-send="true"
href="mailto:kalyan.kamepalli@gmail.com">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 moz-do-not-send="true"
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">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
moz-do-not-send="true"
href="http://wmsc1.terrapages.net/getmap">http://wmsc1.terrapages.net/getmap</a>?",<br>
> //"<a
moz-do-not-send="true"
href="http://wmsc2.terrapages.net/getmap">http://wmsc2.terrapages.net/getmap</a>?",<br>
> //"<a
moz-do-not-send="true"
href="http://wmsc3.terrapages.net/getmap">http://wmsc3.terrapages.net/getmap</a>?",<br>
> //"<a
moz-do-not-send="true"
href="http://wmsc4.terrapages.net/getmap">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
moz-do-not-send="true"
href="mailto:zac.spitzer@gmail.com">zac.spitzer@gmail.com</a>>
wrote:<br>
> have a look thru the examples<br>
><br>
> <a moz-do-not-send="true"
href="http://www.openlayers.org/dev/examples/">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
moz-do-not-send="true"
href="mailto:kalyan.kamepalli@gmail.com">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 moz-do-not-send="true"
href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
> > <a moz-do-not-send="true"
href="http://openlayers.org/mailman/listinfo/users">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 moz-do-not-send="true"
href="http://www.ennoble.com.au/">http://www.ennoble.com.au</a><br>
> <a moz-do-not-send="true"
href="http://zacster.blogspot.com/">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 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>