Is there a way to set connection between WMS Server Edition and Web Edition?
For example,I send request from Web Edition to Server Edition and ask to create layer. Server creates layer and sends it back.
Do you have amy examples about that?
Client and server
Hi Mariya,
Thanks for your post and welcome to Map Suite forums!
If you means pass the customer parameters from the web edition to the wms server, yes, it does.
For example, in the DisplayASimpleMap.aspx.cs file:
We add a custom parameter “CustomParameter”(Please notice, we only can set the key named “CustomParameter”):
wmsOverlay.Parameters.Add("STYLES", "DEFAULT");
wmsOverlay.Parameters.Add("CustomParameter", "background:Red");
then in the DisplayASimpleMapWmsLayerPlugin.cs, we override the “GetMapCore” method:
protected override System.Drawing.Bitmap GetMapCore(GetMapRequest getMapRequest, MapConfiguration cachedMapConfiguration, System.Web.HttpContext context)
{
string customPara = getMapRequest.CustomParameter;
return base.GetMapCore(getMapRequest, cachedMapConfiguration, context);
}
if there is anything confused, don’t hesitate to let us know.
Thanks,
Johnny
Thank you for a hint.
Mariya,
You are welcome.
Feel free to let us know if there is any question.
Thanks,
Johnny