Jump to content

Changing map chart image layer hierarchy every time it is displayed.


Black

Recommended Posts

image.thumb.png.1d2de72b51ee80044f31687f392b717c.png

Is it possible to have different image layers on the Map Chart based on the type in Column 4, like the example above, and be able to mark coordinates?
What I want is to find the location using coordinates that utilize two warehouse images when a fruit is selected. If this feature is not available, is there a similar feature?

 

Link to comment
Share on other sites

Hi Black,

The transportation of coordinates from the marked rows to an image is very well possible.
I'll share an example later, but basically, you add your image layer and on top of that, you add a marker layer. The image layer is the warehouse image. The marker layer uses the data from the x/y columns to be placed upon the image layer.

It is also possible to toggle between image layers, but I have not yet created an example in which you combine both the toggling of images and placing the marked coordinates in the active image.

Kind regards,

David

Link to comment
Share on other sites

Hi Black,

In the below screenshots, you'll see a vending machine that has color coding added to it based the inventory table.
image.thumb.png.fc1d276b9c56f4a1c70beabafaee3a30.png

The vending machine is a map chart with image layer and marker layer:
image.thumb.png.214d91ab791b283824568c290d9c4fd9.png

The image layer is just a .png file with specific position settings:
image.thumb.png.0a941dcba1a93a566ae4489f884a67cb.png

The marker layer is using the x and y coordinates columns from the inventory table, to localize them on the vending machine image.
image.thumb.png.d07a85c6271bf776926c60838037f1f0.png

The marking is set to limit the data by marking, so whenever you select a subset, only that subset is showing in the vending machine image:
image.thumb.png.69d966704d95ce6d11ed3edca508ac56.png

This is how you an set up your initial marker layer with an image.

Kind regards,

David

Link to comment
Share on other sites

This article can help you toggle map layers on and off. In this case, you would have two different image layers you toggle on/off by using an iron python script:

You then need to automate that toggling, using a data function that stores the output in different document properties. And each document property toggles one layer off and the other on.

If you could share your example dxp file and the different images, we could take a look at it (I'm using SF 14.4, so if you have a lower version, please let us know).

Kind regards,

David

 

Link to comment
Share on other sites

Hi Black,

The attached .dxp file can get you started.
It has 2 images, 2 iron python scripts to toggle the images in the map chart and it uses a data function to fill document properties that you would need to trigger the scripts automatically.

For convenience purposes, the scripts are also executable via the buttons in the text area.

Kind regards,

David

Image layer toggle.dxp

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...