Select to view content in your preferred language

Map is not showing in ArcGIS API for Python demo test.

9560
29
07-03-2018 08:13 AM
by Anonymous User
Not applicable

Getting started with ArcGIS API for Python, and something seems amiss. I was hoping to simply get to the point where I could see a simple map and feel a nice sense of progress, but, while I get no error messages when I try to display the map, I also get no map.

This is probably something VERY simple, but I haven't been able to figure out under my own power. See image, please.

Thank you,

Randy McGregor

29 Replies
DarrenWiens2
MVP Honored Contributor

I assume you've tried it without the 'oops' part?

0 Kudos
by Anonymous User
Not applicable

The next line after the OOPS corrects it.

0 Kudos
DarrenWiens2
MVP Honored Contributor

Hmmmm, the following works for me:

from arcgis.gis import GIS
gis = GIS()
map = gis.map("Paris")
map‍‍‍‍‍‍‍‍

by Anonymous User
Not applicable

I am revisiting this. I have tried doing this in the sandbox, and I got the following. Does this provide any clues as to what the issue might be?

Thanks

0 Kudos
by Anonymous User
Not applicable

Thanks for checking. I'm missing something. I just don't know what...

0 Kudos
DarrenWiens2
MVP Honored Contributor

It's probably some difference in our environments. You're running on Python 3 kernel?

0 Kudos
JeffBigos
Esri Contributor

Hi Randy,

What version of the api do you have installed?

You can check with the following code

import arcgis

print(__arcgis.version__)
0 Kudos
JoshuaBixby
MVP Esteemed Contributor

The syntax is print(arcgis.__version__)

JeffBigos
Esri Contributor

Thanks for the correction Joshua

0 Kudos