Select to view content in your preferred language

Why can't I see $map on arcGIS arcade?

402
7
Jump to solution
2 weeks ago
Labels (1)
Matgo
by
Emerging Contributor

Hello! I want to use the $map on my new map but I can't see on the profile variables (look at the picture below).

Matgo_0-1758537814823.png

I have another map that I've use $map on (look at the pic below)

Matgo_1-1758537960078.png

Can someone explain to me why I can't see and use the profile variables $map. 

 

Thank you

 

 

0 Kudos
1 Solution

Accepted Solutions
CodyPatterson
MVP Regular Contributor

Hey @Matgo 

From my testing, I was able to see $map on every layer such as Web Map, Feature Layer and Hosted Feature Service, may have swapped those, but the one I didn't see map on was a Map Image Layer. If you're using a Map Image Layer, you won't be able to access the $map variable as it's a different type of layer and doesn't allow querying the same way that the other layers do! Has this worked with other Map Image Layers?

Cody

View solution in original post

7 Replies
CodyPatterson
MVP Regular Contributor

Hey @Matgo 

From my testing, I was able to see $map on every layer such as Web Map, Feature Layer and Hosted Feature Service, may have swapped those, but the one I didn't see map on was a Map Image Layer. If you're using a Map Image Layer, you won't be able to access the $map variable as it's a different type of layer and doesn't allow querying the same way that the other layers do! Has this worked with other Map Image Layers?

Cody

Matgo
by
Emerging Contributor

Hello Cody! You are right, the layers I can't see $map are Map Image Layers, the other one I can see are feature layers! Now I know whats the problem! Thank you 🙂

0 Kudos
Matgo
by
Emerging Contributor

Is there a easy way to transform my Map Image Layers to Feature layers? 

0 Kudos
CodyPatterson
MVP Regular Contributor

Hey @Matgo 

Glad you were able to find the differences! I wasn't sure myself until I went through each!

In terms of transferring, if this was a layer that was uploaded from Pro, you may need to reupload the layer with the Feature button turned on, something like this here:

CodyPatterson_0-1758542151634.png

If this was uploaded with Pro already, there could be a chance that the Feature layer may exist with the same name, I would check your items on ArcGIS Online and see if one is already there, I've done that many times! In terms of conversion, I don't believe there's a 1-1 way.

Cody

0 Kudos
Matgo
by
Emerging Contributor

Thank you! I'm using arcmap. But if it doesnt work then it's okay. It's not very important the thing I wanna do on arcade. But its good that I know this problem, thank you!

 

 

0 Kudos
RhettZufelt
MVP Notable Contributor

With ArcMap you can use Catalog to enable feature access in the Service Properties:

RhettZufelt_0-1758556066552.png

 

R_

0 Kudos
Matgo
by
Emerging Contributor

Oooh nice! Gonna try it later 🙂 Thank you so much! 🙂

 

 

0 Kudos