You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// We need this option for prov2 since we have not passed a featuretype namespace
prov2.QuickGeometries=true;
prov4.QuickGeometries=true;
prov5.QuickGeometries=true;
prov6.QuickGeometries=true;
layer1.DataSource=prov1;
layer2.DataSource=prov2;
layer3.DataSource=prov3;
layer4.DataSource=prov4;
layer5.DataSource=prov5;
layer6.DataSource=prov6;
map.Layers.Add(layer1);
map.Layers.Add(layer2);
map.Layers.Add(layer3);
map.Layers.Add(layer4);
map.Layers.Add(layer5);
map.Layers.Add(layer6);
map.Layers.Add(layLabel);
map.Center=newPoint(-74.0,40.7);
map.Zoom=10;
// Alternatively zoom closer
// demoMap.Zoom = 0.2;
Matrixmat=newMatrix();
mat.RotateAt(angle,map.WorldToImage(map.Center));
map.MapTransform=mat;
returnmap;
}
catch(WebExceptionex)
{
if((ex.Message.Contains("(502) Bad Gateway"))||
(ex.Message.Contains("Unable to connect to the remote server")))
{
thrownewException(
"The Wfs sample threw an exception. You probably need to install the GeoServer WFS to your local machine. You can get it from here: http://docs.codehaus.org/display/GEOS/Download. The exception message was: "+