Tag Info

New answers tagged

1

Esri support got in touch with me and said to simply save a copy rather than save the .MXD itself. Further: "...when Bing layers are added to a MXD a global property is created and referenced. Even when those layers are removed the MXD maintains the reference. When saving the MXD as a copy (when Bing layers are not present) the reference is not copied. Which ...


3

No. You need a Mapbox Commercial Satellite licence. https://www.mapbox.com/tos/#[YmtIyw] You may trace Mapbox-hosted imagery in order to produce derivative vector datasets for non-commercial purposes, and for OpenStreetMap. If you wish to produce derivative vector datasets from imagery for commercial purposes, you must buy a Mapbox Commercial Satellite ...


1

Try this code: import arcpy mxd = arcpy.mapping.MapDocument(r"PATH") for df in arcpy.mapping.ListDataFrames(mxd): for lyr in arcpy.mapping.ListLayers(mxd, "*Microsoft*", df): arcpy.Delete_management(lyr) arcpy.mapping.RemoveLayer(df, lyr) print "Removed from "+ df.name+" dataframe: " +lyr.name mxd.save() del mxd, lyr, df ...



Top 50 recent answers are included