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).
I have another map that I've use $map on (look at the pic below)
Can someone explain to me why I can't see and use the profile variables $map.
Thank you
Solved! Go to Solution.
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
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
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 🙂
Is there a easy way to transform my Map Image Layers to Feature layers?
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:
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
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!
With ArcMap you can use Catalog to enable feature access in the Service Properties:
R_
Oooh nice! Gonna try it later 🙂 Thank you so much! 🙂