styling icons markers - fusion tables - google-fusion-tables

This is offered as assistance to other newbies like myself.
I struggled quite a while to figure out how to assign different icons to different categories of markers in my fusion table project. I found the documentation limited and confusing, and I figure if I was confused then others probably are as well.
With the help of others and lots of testing, I can now share with you two ways to accomplish this.
First note, the icons available for fusions tables is very limited, from a single set that you can see here:
http://www.google.com/fusiontables/DataSource?dsrcid=308519
Magnify the icons floating on the ocean and click on the ones you like to learn their names.
1. Styling from inside the fusion table:
Create a column with a name like "Styles". Be sure to set its TYPE as TEXT.
In the column, add the names of the icons you want to use for your different categories.
Examples of names: star, target and "red_blank".
When you are in map view, click on the CONFIGURE STYLES BUTTON. Under Points/Marker Icon, select Column. Click on "Use icon specified in a column", and from the dropdown, select the column name you have set eg. "Styles".
View the map and you should see your various icons displayed.
2. Styling in your javascript:
Add a styles section to your code. Here's an example (in this case the Styles categories were coded with numbers):
layer_2 = new google.maps.FusionTablesLayer({
suppressInfoWindows:true,
query: {
select: 'Location',
from: 'tableid' //add the id number of your table here, inside the quotes
},
styles: [
{where: "'style' = 14", markerOptions:{ iconName:"star"}}, // other landmarks
{where: "'style' = 13", markerOptions:{ iconName:"wht_pushpin"}}, //businesses
{where: "'style' = 11", markerOptions:{iconName:"red_blank"}}, //town houses
{where: "'style' = 12", markerOptions:{ iconName:"orange_blank"}}, //country homes
{where: "'style' = 15", markerOptions:{ iconName:"target"}},
]});
Both approaches work great. Having worked with both I now think I prefer to do this inside the fusion table, just because I find the simpler I can keep the javascript, the better things work for me.
However, controlling it through the JS makes it easier to change icons on the fly, as you need only change one line of code, instead of changing the icon name in the Style column through every row of your table.
I hope this is helpful.
Wendy

Also worth checking out this help article that describes how to use the Merge function to quickly create the column assigning styles / icons to rows in your table:
Using Merge to apply map styles by category

For custom markers use this instead of FusionTablesLayer,
http://code.google.com/p/gmaps-samples/source/browse/trunk/fusiontables/custom_markers.html?spec=svn2515&r=2515, I think they can be use with makerclusters.

Also note that, for reasons unclear, you can get different results in the classic and current fusion table interface. My fusiontablelayer wasn't showing the right styles on my map even though all appeared well on the fusion table visualization, but when I switched to classic and reset the icon column and fixed the infowindow styling, everything fell into place. Odd, but it worked.

Related

How to change the order of items in the algebra view of geogebra?

I'm using GeoGebra Classic 5 and have a bigger project where I've encountered the problem that I can't find any way to change the order of elements in the list of the algebra view after the elements are created. Sure I could of course just delete the affected elements and create them in the right order but I'm sure there must be a better solution to such a simple problem.
Here you see what it looks like right now, and how I would like it to look
I've tried looking through the properties panel and all the navbar buttons but there seems to be no way to change the order of the list. The only thing I've found is the "sort by" setting that changes the order but doesn't let the user decide the order other than some predefined sortings. I also haven't been able to find anything about this on google or the geogebra documentation. Hope you can help

A way to refer to the "Current cell" for a dynamic Conditional Formatting in Google Spreadsheets

To be more specific, I want the Conditional Formatting to check the content of the cell that is currently being formatted and be dynamic as I copy-paste the Conditional Formatting into another cell, without having to manually fiddle with the formula again.
So what I'm doing is this (using an example):
I have a list of foods categorized by type (Fruits, vegetables, etc...) and every week the list changes, so its not possible to add "hard values" to formulas, it has to be a cell reference under the category.
Which means that under the category "fruits" for example, in week 1 i can have: banana, apple and peach but totally different fruits another week.
Anyways, I also want to create a calendar with the days in the week, where I put 4 drop-down menus which correspond to the 4 types of food. The drop down menus update as I update the initial list of avaiable foods.
Now down to the real issue.
I want that the cell used for the drop down menu to take an specific color when the content of that cell contains a food inside a given category.
For example, I select Apple, it checks for the apple and applies the apple color to the cell.
I acheived this with this
=COUNTIF(A4:A6, INDIRECT("RC","FALSE"))
I found someone online using the INDIRECT("RC","FALSE") value to "reference" the current cell but its not working for me...
A4:A6 is the range of fruits and it will give the red color to the apple because i defined it in Conditionnal formatting.
Now when I copy the conditional formatting is not working for the other apples and I want to make it work for others, just by checking if the current cell contains a value in a range of cells, without manually changing the current cell for every cell.
https://docs.google.com/spreadsheets/d/15trOcNzucTJDDwuseQTsvjhioIGN9W4NEjhztmMZ1so/edit#gid=0
This is my google spreadsheet, please help ! I'm not sure if I can understand better. This is for a much bigger project and really need the help.
Current cell for conditional formatting is left top most cell in Apply to range range.
In your case it is D11. So you should use following formula:
=COUNTIF($A$4:$A$6, D11)

how to know grouping values in pivot chart in Hyperion designer

I have a chart which has query,result and pivot. pivot has 3 part side labels,top labels and facts.
Some user selected few data in side label and make them a group, I dont know what those values are.
Can somebody let me know how to find grouping values in Hyperion Designer 8.5.
Thanks
Deepak
I'm going to guess that what you have is a pivot table where someone created a drilldown by right-clicking and selecting hide. And you want to know what they hid. Unfortunately, even if you're the one that hid the values, you can't get that information back without showing everything. This is just one of those Hyperion quirks: it assumes that people using Designer are individual developers who aren't going to be hiding and renaming things without remembering the original values. The only way to get it back is to do some detective work by showing everything and trying to replicate the table.

How do I select a specific custom view in a google sheet using code

I have a Google sheet with a column that is used to discriminate across various centers. Each row identifies the appropriate one by its email address.
I am creating as many subviews as there are email addresses and would like to:
Enumerate them
Switch to each one of those sub-views
Do you know if it's possible to do and, if so, how? My google-fu seems lacking.
It is possible, but it depend of what you expect as output, does the output need to be editable or does it only need to be viewable. In the hypothesis of the second option you could use a formula "filter" instead of the "filtered views" the formula filter can be based on on specific cell where you put a drop down of all your options. eg here

How to display headers for each group in jqGrid

I am trying to use jqGrid to display tabular data in groups (shown in image below) and having trouble displaying headers for each group (as Hierarchical jqGrid displays columns headers for child grids). I have included how default jqGrid Grouping looks like.
Is there any way to implement this? Also is it possible to display summary in group header row instead of footer?
Thank you
What you want contains too many changes in the standard structure of the grid. I suppose that you want that the "Groups" header and sub-headers "Group Header 1", "Group Header 2", "Group Header 3" should be resizable. It seems me a little too difficult in the implementation.
Probably you should use better subgrids instead of data grouping? If you need hold the width of last columns of subgrids synchronous with the width of last columns of the main grid you can use approach which I described in the answer. You can use resizeStop callback to catch changing of column size and you can call setColWidth method (see the answer for more details) on another grid (on main grid and other opened subgrids).

Resources