Ahoj všichni, <\/P>
<\/P>
Po přidání lokálních basemap do Basemap Gallery (config_BasemapGallery.json) jsou nové položky uvedeny ve Windows ale když na ně klikneme, nezobrazí se v mapě. Vypadá to, že odkaz není aktivní.<\/P>
Zde je kopie souboru: config_BasemapGallery.json<\/P>
{ "basemapGallery": { "basemaps": [ { "title": "Dark Gray Canvas", "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": "Imagery", "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": "Imagery with Labels", "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<\/A>"<\/SPAN> } ], "spatialReference": { "wkid": "102100" } }, { "title": "Light Gray Canvas", "thumbnailUrl": "\/\/[MyCompany].maps.arcgis.com\/sharing\/rest\/content\/items\/8b3b470883a744aeb60e5fff0a319ce7\/info\/thumbnail\/light_gray_canvas.jpg", "layers": [ { "id": "World_Light_Gray_Base_1486", "opacity": 1, "visibility": true, "url": "<\.span">http://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer Mapy", "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,
That is pretty basic GIS stuff. Just open ArcCatalog and go to the ArcToolbox > Data Management > Projections and Tranformations > Raster > Project Raster
Thanks Robert,
Any recommendation to re-project several imagery to web Mercator?
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.
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
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.
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
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
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.