Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Google API in Design Studio


I am trainig in using Design Studio, so, I' ve created component. It works good, usual google map.
My second step was to add data to map. And it also worked, i drew polylines and polygons by loading coordinates from source.
Now,  i am trying to filter datasource by clicking on line or polygon on the map and here i am facing with the trouble. As far i understood, i need to create properties of an extension component. How does it work? Does smb have examples except SDK examples?

Former Member
Former Member replied

thanks to Michael and his examples i designed component.

google.maps.event.addListener(  polylines[i],  "click",  function Clicked(event) {

       for (var j = 0; j < map.polylines.length; j++) {

            if (map.polylines[j].type == this.type) {

                 _filterParam = map.polylines[j].type;

                 that .firePropertiesChanged([ "filterParam" ]);

                 that .fireEvent("setFilters");






this.filterParam = function(value) {

  if (value === undefined) {

  return _filterParam;

  } else {

  return this;




in .ztl

String getFilterParam() {*
return this.filterParam;
2 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question