Hi,

The layer has its features but they don't appear on the map ? Did you forget to add the layer to the map ?

Alexandre


On 10-12-10 08:31 AM, [email protected] wrote:
Hi all,
I am new to the list and to OpenLayers and even to Javascript.
My map shoud show a vector layer from Geoserver running at port 8080. The
web application is hosted by IIS at port 80.
I have set up an aspx page working as a proxy.

The layer is visible within Firebug, but I can't see anything on the
browser.
I don't know what else to do, any help would be appreciated.
Note that a first, very slow version worked with IE 7 with no proxy and
security settings off.
Now I am trying Firefox 3.6.12 looking for better performance (I know that
593 features are a lot, but I am still not seeing anything to evaluate)

This is the code:

vect = new OpenLayers.Layer.Vector("WFS", {
                                strategies: [new OpenLayers.Strategy.BBOX()],
                                protocol: new OpenLayers.Protocol.WFS.v1_1_0({
                                        url:
"http://10.3.26.48:8080/geoserver/wfs?service=wfs&version=1.1.0&request=GetFeature&typeName=TrackingParcoOvest:box";,
                                        featureType: "box",
                                        featureNS: "TrackingParcoOvest"
                                        })
                                })
featureNS is ok, but to make the proxy work I had to set the URL parameter
to the complete request url, so it is useless.


this is a DOM abstract (note that *all* features are listed in
unrenderedFeatures too):

vect Object { EVENT_TYPES=, options={...}, more...}
  CLASS_NAME    "OpenLayers.Layer.Vector"
  EVENT_TYPES   ["beforefeatureadded", "beforefeaturesadded", "featureadded",
22 more...]
  RESOLUTION_PROPERTIES ["scales", "resolutions", "maxScale", 5 more...]
  SUPPORTED_TRANSITIONS ["resize"]
  alpha false
  alwaysInRange true
  attribution   null
  displayInLayerSwitcher        true
  displayOutsideMaxExtent       false
  div   div#OpenLayers.Layer.Vector_12.olLayerDiv
  drawn true
  eventListeners        null
  events        Object { object={...}, listeners={...}, more...}
  features      [Object { layer={...}, data={...}, more...}, Object { 
layer={...},
data={...}, more...}, Object { layer={...}, data={...}, more...}, 591
more...]
  filter        null
  geometryType  null
  gutter        0
  id    "OpenLayers.Layer.Vector_12"
  imageOffset   null
  imageSize     null
  inRange       true
  isBaseLayer   false
  isFixed       false
  isVector      true
  map   Object { tileSize=w=256,h=256,
maxExtent=left-bottom=(683537.872,4485476.36)
right-top=(683949.22,4485914.682), more...}
  maxExtent     left-bottom=(683537.872,4485476.36)
right-top=(683949.22,4485914.682) { left=683537.872, bottom=4485476.36,
more...}
  maxResolution 1.7121953124988067
  maxScale      20736.367974443623
  metadata      Object {}
  minExtent     null
  minResolution 0.000052252054214441124
  minScale      679489305.7865686
  name  "WFS"
  numZoomLevels 16
  opacity       null
  options       Object { strategies=, protocol={...}}
  projection    EPSG:4030 { projCode="EPSG:4030",
CLASS_NAME="OpenLayers.Projection"}
  protocol      Object { 
url="http://10.3.26.48:8080/...=TrackingParcoOvest:box";,
featureType="box", more...}
  renderer      Object { container=, rendererRoot=, more...}
  rendererOptions       null
  renderers     ["SVG", "VML", "Canvas"]
  reportError   true
  resolutions   [1.7121953124988067, 0.8560976562494034, 0.4280488281247017, 13
more...]
  scales        [679489305.7865686, 339744652.8932843, 169872326.44664216, 13
more...]
  selectedFeatures      []
  strategies    [Object { active=true, layer={...}, more...}]
  style null
  styleMap      Object { styles={...}, extendDefault=true,
CLASS_NAME="OpenLayers.StyleMap"}
  tileSize      w=256,h=256 { w=256, h=256, CLASS_NAME="OpenLayers.Size"}
  transitionEffect      null
  units "degrees"
  unrenderedFeatures    Object { OpenLayers.Feature.Vector_71={...},
OpenLayers.Feature.Vector_80={...}, more...}
  visibility    true
  wrapDateLine  false


Regards
Domenico De Rosa


_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users


--
Alexandre Dubé
Mapgears
www.mapgears.com

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to