<div dir="ltr">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">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">http://wmsc1.terrapages.net/getmap</a>?",<br> //"<a href="http://wmsc2.terrapages.net/getmap">http://wmsc2.terrapages.net/getmap</a>?",<br>
//"<a href="http://wmsc3.terrapages.net/getmap">http://wmsc3.terrapages.net/getmap</a>?",<br> //"<a 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>
<div class="gmail_quote">On Tue, Jun 29, 2010 at 5:05 PM, Zac Spitzer <span dir="ltr"><<a href="mailto:zac.spitzer@gmail.com">zac.spitzer@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">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>
<div>
<div></div>
<div class="h5"><br>On 29 June 2010 13:44, Kalyan Kamepalli <<a 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></div></div>> _______________________________________________<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>><br><font color="#888888"><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></font></blockquote></div><br></div>