Skip to main content
1-Visitor
October 27, 2015
Solved

Cant draw regions on map

  • October 27, 2015
  • 3 replies
  • 1492 views

I'm trying to draw regions on map widget with composer only.

Here the steps i took:

1 - Created a Thing

2 - Created a property with InfoTable Value

3 - I added some coords(4 coords) in each rows from InfoTable

4 - Dragged infotable property onto map widget and chose these binding targets :  Data , RegionData , RegionLocationData.

After that, no regions appears on map,only 4 markers of each coord, what am i missing ? Please help

obs : ShowRegion checkbox is Checked!

    Best answer by ibanham

    Hi

    If you're using a set of regions then you need to bind the InfoTable Field that contains the set of region InfoTables to the RegionData target. You then also need to set the regionsLocationField parameter to specify which field of the InfoTable property to use (even if the InfoTable only has 1 field)...

    As you're only using a single region, bind your property to the RegionLocationData Target and set the RegionLocationField to the appropriate field of your InfoTable.

    Note that your co-ordinates need to be in order or you'll get a strangely shaped region...

    Hope this helps

    Regards

    Ian

    3 replies

    ibanham1-VisitorAnswer
    1-Visitor
    October 27, 2015

    Hi

    If you're using a set of regions then you need to bind the InfoTable Field that contains the set of region InfoTables to the RegionData target. You then also need to set the regionsLocationField parameter to specify which field of the InfoTable property to use (even if the InfoTable only has 1 field)...

    As you're only using a single region, bind your property to the RegionLocationData Target and set the RegionLocationField to the appropriate field of your InfoTable.

    Note that your co-ordinates need to be in order or you'll get a strangely shaped region...

    Hope this helps

    Regards

    Ian

    1-Visitor
    October 28, 2015

    Thanks Ian , it makes sense, i tried that, but i may be missing something else.

    After did that  the map started zoomed in another place,not at the region that i chose,so i bound the infotable also with DATA target,then the map started at the correct place but still not showing the drawn region,only the 4 markers.

    1-Visitor
    October 29, 2015

    After reviewing the bindings and creating a set of regions it worked! I dont know exactly how but it worked,

    Thanks