InvokeCustomMapTip
I am working on a Custom Map Tip module based on the Commands & Events Sample provided in the Georcotex HTML5 Samples. However, I am having problems triggering the sample event from when I click on the map. I haven't done anything custom yet, so the sample should be working. My goal is to display a custom map tip window but I want to identify only the layers I want. I also want to show additional info in the map tip window and yet to figure out how to bind the layer attributes to the UI. Any feedback will be much appreciated.
Sedat
Below is my code.
/customer/servlet/servlet.FileDownload?file=00P6000000e88IIEAY
/customer/servlet/servlet.FileDownload?file=00P6000000e88INEAY
/customer/servlet/servlet.FileDownload?file=00P6000000e88CNEAY
/customer/servlet/servlet.FileDownload?file=00P6000000e88IEEAY
/customer/servlet/servlet.FileDownload?file=00P6000000e88ISEAY
-
Hi Sedat,
The "onClick" hook takes a command name. InvokeCustomMapTip is the name of a method in your view. You should create a command called InvokeCustomMapTip using the command registry, e.g.:
this.app.commandRegistry.command("InvokeCustomMapTip").register(this, function (clickArgs) {
/* trigger the custom map tip! */
});
Hope this helps!
-Jason
0 -
Nice I was looking for that. Is it possible to find this kind of info somewhere in the doc?
Thanks
Vincent
0
Please sign in to leave a comment.
Comments
2 comments