I do not have ArcGIS desktop. And I have installed the ArcGIS Python API.

And I tried the following:

import arcgis
from arcgis.gis import GIS
from arcgis.mapping import WebMap
gis = GIS()
map1 = gis.map('Paris') # Passing a place name to the constructor
                        # will initialize the extent of the map.

No map displayed.

Why is that?

  • I dont know the arcgis-python-api but it looks like 'Paris' is just a string, like 'asdadas'. Shouldnt it be a variable or something else? Or arcgis_online.map("Paris")? (developers.arcgis.com/python/sample-notebooks/…)
    – BERA
    Dec 7 '17 at 12:34
  • some said I need to use python -m arcgis.install to enable the map widget. But I don't know how to do that in Jupyter Notebook.
    – JOHN
    Dec 7 '17 at 12:44
  • Cross-posted as stackoverflow.com/q/47694180/820534
    – PolyGeo
    Dec 9 '17 at 12:04
  • Are you working with Anaconda or ArcGIS Pro? Dec 31 '17 at 20:49
  • Anaconda. I dont have ArcGIS Pro
    – JOHN
    Jan 5 '18 at 3:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.