[OpenLayers-Users] Overview map with ArcIMS breaks
bartvde at osgis.nl
bartvde at osgis.nl
Fri Feb 19 04:42:34 EST 2010
Hi Vadim,
I just tried and I can reproduce your problem. Normally these issues can
be fixed by cloning the baselayer, however for the ArcIMS case this did
not work for me, probably since it misses a specific implementation of the
clone method.
However, using a nother separate ArcIMS layer for the overview map control
works okay. I know it's a workaround for the problems you encountered, but
hopefully it will keep you moving.
layer = new OpenLayers.Layer.ArcIMS( "Global Sample Map",
"http://sample.avencia.com/servlet/com.esri.esrimap.Esrimap",
options );
var overview = new OpenLayers.Layer.ArcIMS( "overview",
"http://sample.avencia.com/servlet/com.esri.esrimap.Esrimap",
options );
map.addLayer(layer);
map.addControl (new OpenLayers.Control.OverviewMap({layers:
[overview]}) );
Best regards,
Bart
>
> Hi,
>
> Created a new ticket on Trac but didn't get a response there, so I'm
> wondering if this is a user error API error
> (http://trac.openlayers.org/ticket/2490).
>
>
> When an ArcIMS layer is a base layer, the overview map doesn't load and
> errors are throw in
>
> Grid.js.addTileMonitoringHooks(tile)
>
> the "tile" that is passed is undefined. I was able to trace it back to
>
> Grid.js.initGriddedTiles(..)
>
> => line 408
>
> if (!tile) {
> tile = this.addTile(tileBounds, px);
> this.addTileMonitoringHooks(tile);
> row.push(tile);
> } else {
> tile.moveTo(tileBounds, px, false);
> }
>
>
> The call to
>
> tile = this.addTile(tileBounds, px);
>
> returns undefined. So it seems that the actual error is in
> ArcIMS.js.addTile(...)
>
> To replicate:
>
> 1) Take the basic ArcIMS example
>
> http://www.openlayers.org/dev/examples/arcims.html
>
> 2) Add 1 line at the end of the init() routine to add the overview map
>
> map.addControl (new OpenLayers.Control.OverviewMap( ) );
>
> 3) Load sample HTML file -> map loads, but the overview control throws
> errors
>
> Are there any parameters I can pass in to OverviewMap to make it work?
>
> I've tried it WMS and ArcGIS (both Tile based layers) and they both
> worked.
>
> Thanks,
>
> -Vadim
> --
> View this message in context:
> http://n2.nabble.com/Overview-map-with-ArcIMS-breaks-tp4595244p4595244.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
More information about the Users
mailing list