# Editing values after a certain range in mapper

**URL:** <https://forum.electromage.com/t/editing-values-after-a-certain-range-in-mapper/3193>\
**Category:** Patterns and Code\
**Tags:** mapping, beginner\
**Created:** [September 24, 2023, 11:49pm UTC](https://forum.electromage.com/t/editing-values-after-a-certain-range-in-mapper/3193 "2023-09-24T23:49:05Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![sorceror](https://forum.electromage.com/user_avatar/forum.electromage.com/sorceror/32/735_2.png) [@sorceror](https://forum.electromage.com/u/sorceror)\
**Post date:** [September 25, 2023, 10:01am UTC](https://forum.electromage.com/t/editing-values-after-a-certain-range-in-mapper/3193/3 "2023-09-25T10:01:51Z")

</div>

> [@Folzams](#):
>
> I’m happy to try a manual JSON mapping

Well then! You could consider adding a 3rd dimension, then using Render3D. Store a “which part of the picture is it” flag in the 3rd coordinate of the map, then:

```javascript
export function render3D(index, x, y, z) {
  if (z == 0) {
    if (showLamb) {
     colorLamb(x,y)
     return
    }
  } else {
    if (showBackground) {
      colorBackground(x, y)
      return
    }
  }
  rgb(0,0,0) // default
}

```

I have a map in which I store θ (angle) in _z_ so I don’t have to do trig at render time. Works great but looks a little funny in the map view!

---

_[View the full topic](https://forum.electromage.com/t/editing-values-after-a-certain-range-in-mapper/3193)._
