Hallo zusammen, <\/P>
<\/P>
Nach dem Hinzufügen lokaler Basemaps zur Basemap Gallery (config_BasemapGallery.json) werden die neuen in den Fenstern aufgelistet, aber wenn wir darauf klicken, werden sie nicht in der Karte angezeigt. Es sieht so aus, als ob der Link nicht aktiv ist.<\/P>
Hier ist eine Kopie der Datei: config_BasemapGallery.json<\/P>
{ "basemapGallery": { "basemaps": [ { "title": "Dunkle Graue Leinwand", "thumbnailUrl": "\/\/[MyCompany].maps.arcgis.com\/sharing\/rest\/content\/items\/25869b8718c0419db87dad07de5b02d8\/info\/thumbnail\/DGCanvasBase.png", "layers": [ { "id": "layer0", "layerType": "ArcGISTiledMapServiceLayer", "opacity": 1, "visibility": true, "url": "<\/SPAN>http:\/\/services.arcgisonline.com\/arcgis\/rest\/services\/Canvas\/World_Dark_Gray_Base\/MapServer<\/A>"<\/SPAN> }, { "id": "World_Dark_Gray_Reference_8618", "layerType": "ArcGISTiledMapServiceLayer", "url": "<\/SPAN>http:\/\/services.arcgisonline.com\/arcgis\/rest\/services\/Canvas\/World_Dark_Gray_Reference\/MapServer<\/A>",<\/SPAN> "visibility": true, "opacity": 1, "isReference": true } ], "spatialReference": { "wkid": 102100 } }, { "title": "Bildmaterial", "thumbnailUrl": "\/\/[MyCompany].maps.arcgis.com\/sharing\/rest\/content\/items\/86de95d4e0244cba80f0fa2c9403a7b2\/info\/thumbnail\/tempimagery.jpg", "layers": [ { "id": "World_Imagery_2017", "visibility": true, "opacity": 1, "url": "<\/SPAN>http:\/\/services.arcgisonline.com\/ArcGIS\/rest\/services\/World_Imagery\/MapServer<\/A>"<\/SPAN> } ], "spatialReference": { "wkid": "102100" } }, { "title": "Bildmaterial mit Beschriftungen", "thumbnailUrl": "\/\/[MyCompany].maps.arcgis.com\/sharing\/rest\/content\/items\/413fd05bbd7342f5991d5ec96f4f8b18\/info\/thumbnail\/imagery_labels.jpg", "layers": [ { "id": "World_Imagery_6611", "opacity": 1, "visibility": true, "url": "<\/SPAN>http:\/\/services.arcgisonline.com\/ArcGIS\/rest\/services\/World_Imagery\/MapServer<\/A>"<\/SPAN> }, { "id": "World_Boundaries_and_Places_1145", "isReference": true, "opacity": 1, "visibility": true, "url": "<\/SPAN>http:\/\/services.arcgisonline.com\/ArcGIS\/rest/services/Reference/World_Boundaries_and_Places/MapServer Karten", "thumbnailUrl": "\/\/[MyCompany].maps.arcgis.com\/sharing\/rest\/content\/items\/931d892ac7a843d7ba29d085e0433465\/info\/thumbnail\/usa_topo.jpg", "layers": [ { "id": "USA_Topo_Maps_4699", "layerType": "ArcGISTiledMapServiceLayer", "opacity": 1, "visibility": true, "url": "<\/SPAN>http:\/\/services.arcgisonline.com\/ArcGIS\/rest\/services\/USA_Topo_Maps\/MapServer<\/A>"<\/SPAN> } ], "spatialReference": { "wkid": 102100, "latestWkid": 3857 } }, { "title": "USGS National Map", "thumbnailUrl": "\/\/[MyCompany].maps.arcgis.com\/sharing\/rest\/content\/items\/6d9fa6d159ae4a1f80b9e296ed300767\/info\/thumbnail\/national_map.jpg", "layers": [ { "id": "layer0", "layerType": "ArcGISTiledMapServiceLayer", "opacity": 1, "visibility": true, "url": "<\/SPAN>http:\/\/basemap.nationalmap.gov\/arcgis\/rest\/services\/USGSTopo\/MapServer<\/A>"<\/SPAN> } ], "spatialReference": { "wkid": 102100 } }, { "title": "MDC Imagery 2016", "thumbnailUrl": "${appPath}\/configs\/BasemapGallery\/MDCImage2016.jpg", "layers": [ { "url": "<\/SPAN>http:\/\/[MyCompanyImagrServer].miamidade.gov\/arcgis\/rest\/services\/Pictometry2016\/ImageServer<\/A>"<\/SPAN> } ], "spatialReference": { "wkid": 102100 },<\/> <\/> <\/>
Jose,
Are your local base maps in WKID 102100? If they are not then if and when you use the widgets setting dialog you would have been warned that you can not have basemaps with different WKIDs
How do I check the WKID in a local base map?
Local base maps are using the following Coordinate Systems:
- NAD_1983_HARN_StatePlane_Florida_East_ .... , Datum: D_North_American_1983_HARN
- NAD_1983_2011_StatePlane_Florida_East_ .... , Datum: D_NAD_1983_2011
Then those state plane base maps are not in WKID 102100. You can not use esri base maps which are web mercator and then add your State Plane local base maps to the basemap gallery. As I mentioned if you had used the widget UI to attempt to add the local basemaps you would have been warned of this.
Hi robert,
Is there a way to customize the Widget.js in "\widgets\BasemapGallery" in order to accept an image server with a different WKID?
What do we do when we have Aerials with different Spatial Reference.
Thanks
No all your basemaps have to be the same WKID. I re-project all my imagery to web Mercator to make it work with esri basemaps.
Thanks Robert,
Any recommendation to re-project several imagery to web Mercator?
That is pretty basic GIS stuff. Just open ArcCatalog and go to the ArcToolbox > Data Management > Projections and Tranformations > Raster > Project Raster
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.