AW: [OpenLayers-Users] ArcGIS93Rest Layer Won't Display

Arnd Wippermann arnd.wippermann at web.de
Tue Dec 6 13:01:19 EST 2011


Hi,

Look Service description at
http://raster1.nationalmap.gov/ArcGIS/rest/services/TNM_Small_Scale_Imagery/
MapServer/
 
You want an image so use
http://raster1.nationalmap.gov/ArcGIS/rest/services/TNM_Small_Scale_Imagery/
MapServer/export?f=image&FORMAT=png&BBOX=-10018754.1704,-0.0008,-0.0008,1001
8754.1688&SIZE=256,256

The parameters LAYER, BBOXSR and IMAGESR of a normal request seem to have no
influence.

Arnd


-----Ursprüngliche Nachricht-----
Von: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von Wayne
Gesendet: Montag, 5. Dezember 2011 23:24
An: users at openlayers.org
Betreff: [OpenLayers-Users] ArcGIS93Rest Layer Won't Display

Hello,
I was wondering if anyone has ever used the USGS National Map in an
Openlayers application before?  I am unsure what parameters and options to
include to get the map to visualize.  

http://raster1.nationalmap.gov/ArcGIS/rest/services/TNM_Small_Scale_Imagery/
MapServer

http://raster1.nationalmap.gov/ArcGIS/rest/services/TNM_Small_Scale_Imagery/
MapServer?f=json&pretty=true

var SmallScale = new OpenLayers.Layer.ArcGIS93Rest( "SmallScale",
			                   
"http://raster1.nationalmap.gov/ArcGIS/rest/services/TNM_Small_Scale_Imagery
/MapServer?f=json&pretty=true",
{
			                        isBaseLayer: true,

			                        //From layerInfo above
			                        resolutions: resolutions,
			                        tileSize: new
OpenLayers.Size(256, 256),
			                        tileOrigin: new
OpenLayers.LonLat(layerInfo.tileInfo.origin.x ,
layerInfo.tileInfo.origin.y),
			                        maxExtent: layerMaxExtent,
			                        projection: 'EPSG:' +
layerInfo.spatialReference.wkid
                    });


This is the constructor I have been trying to use to create the layer, but
it leaves me without a map.  

Thank you,
Wayne

--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/ArcGIS93Rest-Layer-Won-t-Display-tp70
64811p7064811.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users



More information about the Users mailing list