on 01-23-2014 8:57 AM
Hello!
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?
Thanks.
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");
break;
}
}
});
....
this.filterParam = function(value) {
if (value === undefined) {
return _filterParam;
} else {
return this;
}
};
...
in .ztl
String getFilterParam() {* | ||
return this.filterParam; | ||
*} |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Matt,
I am also on a similar kind of project can u please share your project or else just tell how you drew poly lines by taking the Co-ordinates from the source. I am finding it too difficult
Regards
Rahul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Can you share it? I'm getting crazy trying to learn how this work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In order of sophistication/progression:
Hope this helps.
To designate your properties for setters/getters, start at the contribution.xml file, the SDK explains the usages. Know that in order for BIAL's .ztl syntax to acknowledge anything you write in the method implementation, this.whatever must be a property in the contribution.xml.
For datasource filtering, I believe you will have to do this by raising an event and then marshalling out the actual filtering in BIAL back to the DS object itself rather than native within your SDK component. I have need no methods to do it otherwise, unless there is an undocumented way to do it maybe with meta_data.selection or something I've missed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.