TableChart in GAS, what are the different options for setOptions() - google-apps-script

I can't find an exhaustive list.
I'm trying to set the font size on a TableChart, but can't figure out how or if it's even possible. Searching the internet yielded no source of information on the different options available.
I know you can do the following:
setOption('height' : '100%')
for example, but
setOption('font-size' : '16pt')
and
setOption('fontSize' : '16pt')
Don't seem to work. Any help is appreciated.
Thanks,
Marc

It's not possible, unfortunately. I've tried to style my Table Charts as well, but ended up going with a FlexTable for some of it.
The options are listed in the documentation for the Google Visualization API, which the Charts Service uses (and the Apps Script documentation mentions).

Related

Google Maps V3 not working

I'm trying to update our journey planner to use Google Maps V3. I didn't write the original code and am struggling to get it to work. I'm hoping someone can help.
The working old v2 page can be seen here
http://www.connectteesvalley.com/jplanner1.asp
I'm trying to implement v3 on a test page here
http://www.connectteesvalley.com/jplanner1testing.asp
The map displays, which is great. And I have checked numerous times for any functions which aren't now usable in v3, but when I click the "begin my journey"-button it doesn't advance, are there any debuggers out there that could help me pinpoint the erroneous code? As it stands I'm not sure where it is actually failing.
IE Debugger is throwing up an error here
function removeMarker(markerID){
var len = markersArr.length;
for(i=0;i<len;i++){
if (markerID.toLowerCase() == markersArr[i].id.toLowerCase()){
markersArr[i].remove();
}
}
}
saying Object doesn't support property or method 'remove'
however i've looked around here and its used quite often.
Thanks
As you found out by yourself, you need to use setMap(null). Regarding your problem with marker.setImage(imageUrl), you need to use marker.setIcon() instead.

New Google Maps embedding option

Since the latest Google Maps update in 2013, is there a way or a resource that can be used for simple embedding Google Maps?
I have tried using the old maps system but it does not produce desired results.
Also, I have tried using Google Maps Engine, no luck there as well, because you are only served with a link to share, not embed code.
After extensive research on the topic I found no simple way of embedding new Google Maps. Problem will possibly go away once Google decides to update Google Maps. However, I have not seen Google Maps development roadmap and so I can't really vouch for them.
Apart from using simple solution, there are two others (not so simple of course) that might provide a decent substitution.
Solution 1
Using Google Maps API where you can find Developer guides, API reference and code samples. There is no easy way about this, simply follow the instructions and review examples that Google has supplied. Hopefully there might be something in it that will help you.
Simple guide to Google Maps API
Solution 2
Using Google Maps Engine will offer you a way to create your own map. Once you have created a map, added pins, points, routes, etc. at the end you can select option to share. However, option to share just allows you to share a link, not embed. I just wanted to point out this "feature", if you will, of the system.
To embed a map you have to click on a folder in the upper left corner. Shown on the image below and select Embed on my site option.
In the bottom right corner of the map you'll see a cogwheel. Click it.
Click on "Share and embed map";
Choose the size you need from the drop-down menu or choose the custom option;
Click in the box to the right that starts with <iframe src="https://www.google The code should be highlighted. copy and paste it into your web page or blog.
Simples!

toggle visibility of kml folders in GE plugin

I have searched high and low for just a snippet of java script code showing this, but all I'm trying to figure out is how to toggle parts of a KML, mainly folders, using check-boxes or similar. Currently the KML is loaded to the plugin using a networklink.
All of the examples I find want you to have separate kml files for everything, but given the sheer number of assets I'm dealing with that wouldn't be feasible. I know this is possible. All I'm looking for is just that one example of "click this, then this "folder" appears".
Any help is greatly appreciated!

Google map customizations

i'm new to gooogle map developing.i want to make a map as follows.
http://edition.cnn.com/SPECIALS/world/arab-unrest/index.html
But i have no idea how to start this development.Could someone please tell me the way to do this? If you have any worked through examples, that would be a real help!
If you haven't, I recommend you start with Google Maps API Tutorial on http://econym.org.uk/gmap/
First of all - do you want replace the images for maps? If so, you've got troubles - no one is going to make that, and Google maps are provided as is.
If you simply want to add some layers with animation - try to read the docs about overlays.
i found this link.this is will be helpful for others.
http://www.wolfpil.de/

Use a URL to link to a Google map with a marker on it

I want to link to google maps at a particular location with a marker on a particular point.
It's easy to link to a location:
http://maps.google.com/?ll=XX.XXXX,XX.XXXX
But how do I drop a marker at that point too? preferably with a bit of my own text but that's just a bonus.
2017 - Google has released documentation on this see new accepted answer: https://stackoverflow.com/a/44477650/359135
In May 2017 Google launched the official Google Maps URLs documentation. The Google Maps URLs introduces universal cross-platform syntax that you can use in your applications.
Have a look at the following document:
https://developers.google.com/maps/documentation/urls/guide
You can use URLs in search, directions, map and street view modes.
For example, to show the marker at specified position you can use the following URL:
https://www.google.com/maps/search/?api=1&query=36.26577,-92.54324
For further details please read aforementioned documentation.
You can also file feature requests for this API in Google issue tracker.
This format works, but it doesn't seem to be an official way of doing so
http://maps.google.com/maps?q=loc:36.26577,-92.54324
Also you may want to take a look at this. They have a few answers and seem to indicate that this is the new method:
http://maps.google.com/maps?&z=10&q=36.26577+-92.54324&ll=36.26577+-92.54324
If you want to include a zoom level, you can use this format:
https://www.google.com/maps/place/40.7028722+-73.9868281/#40.7028722,-73.9868281,15z
will redirect to this link (per 2017.09.21)
https://www.google.com/maps/place/40%C2%B042'10.3%22N+73%C2%B059'12.6%22W/#40.7028722,-73.9868281,15z/data=!4m5!3m4!1s0x0:0x0!8m2!3d40.7028722!4d-73.9868281
This URL format worked like a charm:
http://maps.google.com/maps?&z={INSERT_MAP_ZOOM}&mrt={INSERT_TYPE_OF_SEARCH}&t={INSERT_MAP_TYPE}&q={INSERT_MAP_LAT_COORDINATES}+{INSERT_MAP_LONG_COORDINATES}
Example for Mount Everest:
http://maps.google.com/maps?&z=15&mrt=yp&t=k&q=27.9879012+86.9253141
Full reference here:
https://moz.com/ugc/everything-you-never-wanted-to-know-about-google-maps-parameters
-- EDIT --
Apparently the zoom parameter stopped working, here's the updated format.
Format
https://www.google.com/maps/#?api=1&map_action=map&basemap=satellite&center={LAT},{LONG}&zoom={ZOOM}
Example
https://www.google.com/maps/#?api=1&map_action=map&basemap=satellite&center=27.9879012,86.9253141&zoom=14
If working with Basic4Android and looking for an easy fix to the problem, try this it works both Google maps and Openstreet even though OSM creates a bit of a messy result and thanx to [yndolok] for the google marker
GooglemLoc="https://www.google.com/maps/place/"&[Latitude]&"+"&[Longitude]&"/#"&[Latitude]&","&[Longitude]&",15z"
GooglemRute="https://www.google.co.ls/maps/dir/"&[FrmLatt]&","&[FrmLong]&"/"&[ToLatt]&","&[FrmLong]&"/#"&[ScreenX]&","&[ScreenY]&",14z/data=!3m1!4b1!4m2!4m1!3e0?hl=en" 'route ?hl=en
OpenStreetLoc="https://www.openstreetmap.org/#map=16/"&[Latitude]&"/"&[Longitude]&"&layers=N"
OpenStreetRute="https://www.openstreetmap.org/directions?engine=osrm_car&route="&[FrmLatt]&"%2C"&[FrmLong]&"%3B"&[ToLatt]&"%2C"&[ToLong]&"#Map=15/"&[ScreenX]&"/"&[Screeny]&"&layers=N"
2023 update:
I found a very easy way to implement this function.
From google maps, find your POI (point of interest) and click on it.
on left handside opening menu you will see an icon Share and click.
A modal opens and you see a sharing link input box. Next to it you will see Copy link. Go to your url and paste it like;
Drive to our office
Voila, you are done.