Hi,

I confiigured openLayers with WMS services to my server. Unfortunately, the
map caching at my server is not supported with WMS requests and is only
supported with my native map requests. So, I now have to develop/write a
custom function in openlayes that reads my native map response and presents
the map layer on openlayers. I am a novice in Java script and my timelines
are too short. I need you people help to write it.

My native map service response is as shown below

<?xml version="1.0" encoding="UTF-8" ?>
*-*<http://siasporapv01.ce.countryenergy.com.au:8080/gss/native?service=map#>
<return xmlns:gml="*http://www.opengis.net/gml*"; xmlns:xsi="*
http://www.w3.org/2001/XMLSchema-instance*"; xmlns:swgml="*
http://www.gesmallworld.com/swgml*"; xmlns:sw="*
http://www.gesmallworld.com/sw*"; xmlns:xsd="*
http://www.w3.org/2001/XMLSchema*"; xmlns:xlink="*
http://www.w3.org/1999/xlink*";>
 *-*<http://siasporapv01.ce.countryenergy.com.au:8080/gss/native?service=map#>
<service_response service="*map*" request="*map*" request_id="*
31717296E20A6A5E8962C96BEA90D507-1278893297942*" session_id="*
31717296E20A6A5E8962C96BEA90D507*">
 * * <display_style_name>*OverView*</display_style_name>
 * * <crs>*nsw_trans_mercator_mm*</crs>
 *-*<http://siasporapv01.ce.countryenergy.com.au:8080/gss/native?service=map#>
<centre>
 *-*<http://siasporapv01.ce.countryenergy.com.au:8080/gss/native?service=map#>
<gml:Point>
 * * <gml:pos>*9.96427566202E7 3.96629324049E8*</gml:pos>
 * * </gml:Point>
 * * </centre>
 *-*<http://siasporapv01.ce.countryenergy.com.au:8080/gss/native?service=map#>
<image_layers>
 *-*<http://siasporapv01.ce.countryenergy.com.au:8080/gss/native?service=map#>
<hash>
 *-*<http://siasporapv01.ce.countryenergy.com.au:8080/gss/native?service=map#>
<element key="*sw_map*">
 *-*<http://siasporapv01.ce.countryenergy.com.au:8080/gss/native?service=map#>
<map_layer_response>
 * * <layer_name>*sw_map*</layer_name>
 * * <ncols>*1*</ncols>
 * * <nrows>*1*</nrows>
 * * <tile_height>*200*</tile_height>
 * * <tile_width>*200*</tile_width>
 * * <viewport_offset_x>*0*</viewport_offset_x>
 * * <viewport_offset_y>*0*</viewport_offset_y>
 * * <image_format>*jpeg*</image_format>
 * * <dynamic>*true*</dynamic>
 *-*<http://siasporapv01.ce.countryenergy.com.au:8080/gss/native?service=map#>
<urls>
 *-*<http://siasporapv01.ce.countryenergy.com.au:8080/gss/native?service=map#>
<collection>
 * * <element>*
http://siasporapv01:8080/gss/resource/map/map73962892604192559077.jpeg?token=-835661748
*</element>
 </collection>
 </urls>
 </map_layer_response>
 </element>
 </hash>
 </image_layers>
 * * <units>*mm*</units>
 * * <style_group>*default*</style_group>
 *-*<http://siasporapv01.ce.countryenergy.com.au:8080/gss/native?service=map#>
<options>
 * * <hash />
 * * </options>
 * * <view_scale>*7477726.710076923*</view_scale>
 * * <rotation>*0*</rotation>
 * * <map_element_key>*swrefVdisplay_styleVidZ3061622Q13*</map_element_key>
 * * <world>*swrefVworldVdatasetZgisVuniverseZ0VworldZ0*</world>
 * * <ace_name>*street_light*</ace_name>
 * * <name>*sw_default*</name>
 * * </service_response>
 * * </return>


So, how difficult it is to write a custom function ( just like the WMS one )
that automatically sends the pan, zoom requests to my server.

Thanks,
Kalyan.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to