Skip to Content
Author's profile photo Dirk Mayrock

DS15 – Create your own Map

Hi all,

I just found something that looked strange to me but after the right hint from an expert it turned out to be a feature, not a bug 😉

I want to share this with you so that you don’t start struggling the same way I did.

To get a better understanding of that “.geosjon” files used to render the shape-layers in Design Studio 1.5 I used http://geojson.io to create my first map. To make it easy I created a map seperating the world in 3 regions using the polygon feature. I added a attribute “BI” and mapped values to it that we have in our system.

/wp-content/uploads/2015/06/map1_719844.jpg

Then I started Design Studio, created an application with a map component and uploaded the geojson file and did all settings required.

When I run the application the map looked like that…

/wp-content/uploads/2015/06/map2_719854.jpg

Not what I expected 🙂 So lets come to the solution and clarify what happened.

When you create a map manually like I did you have to be careful in which order you click the points of your polygons.

==> clicking them clockwise > generates an included selection

==> clicking them counterclockwise > generates an excluded selection  (this is what I did)

So keep that in mind when you create your maps and enjoy the new map component.

All the best

Dirk

Assigned tags

      8 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Mustafa Bensan
      Mustafa Bensan

      Now that is certainly a very useful and time-saving hint about the undocumented feature.  Thanks Dirk.

      Author's profile photo Jeroen van der A
      Jeroen van der A

      Nice share Dirk.

      It is like the greatest advancements in science also weren't accompanied by "eureka!" but by "that's funny" 🙂

      Author's profile photo Former Member
      Former Member

      Thanks for pointing that out Dirk. The convention used by Design Studio is called the right-hand-rule, or sometimes the right-foot rule. It's quite a common convention, but of course other geographical systems adopt different ones.

      Author's profile photo Dirk Mayrock
      Dirk Mayrock
      Blog Post Author

      Hi Anthony,

      cool that this feature has its own name 🙂

      Dirk

      Author's profile photo Mike Howles
      Mike Howles

      Dirk,

      We must be on the same wavelength, I was building some homegrown maps, too (not with geojson.io but with QGIS) - I'll link this post to mine.  Great option!

      For others, you can read my approach I used here Creating Custom GeoJSON maps in Design Studio 1.5 - Part 1 of 2

      EDIT: Also, this post also explains why the h*ll one of the features I traced also flooded my whole map as well!  What a crazy quirk (clockwise/counter-clockwise).  Thank you for sharing this.

      EDIT 2: More information on right-hand/foot rule that I found interesting:  area - How do different GIS systems determine a Polygon's interior? - Geographic Information Systems Stack Excha…

      Author's profile photo Jeroen van der A
      Jeroen van der A

      lol, was testing and somehow I was reminded by your blog 😉

      /wp-content/uploads/2015/06/screenshot_722621.jpg

      Author's profile photo Jean Cristian Ferreira Machado
      Jean Cristian Ferreira Machado

      Hello, I'm using the GeoMap component shape in GeoJSON the tool Design Studio 1.5. But using the SAP BI Mobile application map appears without any data. The map appears empty. The analysis application functions normally via Web Browser and is specifically designed to run on iPad. I performed testing with other components and successfully return data. http://scn.sap.com/thread/3786723 Has anyone ever experienced this? Hugs

      Author's profile photo Former Member
      Former Member

      Hi all, have any of you come across the restriction within the GeoMaps component that it only shows "Single Polygon geometry"?

      Syntax in GeoJSON file is "geometry":{"type":"Polygon" versus "MultiPolygon".

      Is there more detailed documentation available on the GeoJson format as required by DS?

      Note: the test file I have from our Map provider is shown correctly in validation site www.geojsonlint.com but DS neither shows normal or inverse polygons. (other files I created myself work just fine though..)

      regards,

      Roland