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: [email protected]
[mailto:[email protected]] Im Auftrag von Wayne
Gesendet: Montag, 5. Dezember 2011 23:24
An: [email protected]
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
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

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

Reply via email to