I have various Word documents (.docx) saved in Google Drive, everyone has inside a draw composed of text, borders, and a pen-draw, grouped together.
When opened in Google Doc the .docx files to edit, the group appear as a draw composed of the same elements except the pen-draw that is missing.
So I need to solve this, 2 options:
Replace the draw with a saved image
Edit the draw and put inside an image, save&close the draw
Since it is an operation repeated ten times every day I want to find a way to automate this with google appscripts
Any suggestion ?
Related
I'm using Apps Script to generate slides containing tiles.
Each tile contain some information, example: name, ID and an image.
To generate each slide & each tile, I'm using a template composed of shapes, each shape to be modified contains a label such as {{label}}
When I find {{image}} shape, I replace the shape by an image.
Images are stored on Drive. I put everything in place to retrieve the blob associated to image but the single operation replaceWithImage takes around 2 seconds (I used console.time/timeEnd just before replaceWithImage and after).
Any idea how to accelerate this ? Initially I was suspecting the search on Drive, but it's around 200ms to look for the file and get the blob.
I have a json file with 80ish adjacent counties, represented as individual polygons. Each county, as expected, shares borders with other counties.
I'd like to convert each of those polygons to paths, creating paths symbolizing the borders of every county. At this point, I'd be left with many overlapping or duplicate paths where counties shared borders.
I'd like to find a systematic way to delete these overlapping paths so each line representing a border is only displayed once. By doing so, I'll be able to style the borders individually to fix a problem described in a previous question.
Does such a thing exist? I'm aware of the possibility of deleting shared borders in Illustrator, but many of the county polygons share borders with 3+ other counties, making this incredibly tedious.
Thanks.
So, I eventually tackled this problem using ArcMap. My steps:
Create a shapefile from the json I was using and load into ArcMap
Import the shapefile into a geodatabase
Put the file into a feature dataset
Create a topology (right click on Feature Dataset > New > Topology)
Add a rule to the topology against overlapping lines
Find all errors (overlapping lines)
Use the error inspector to select each overlapping line and Subtract (right click on error) one of the lines
Took me about 5 minutes to do remove a hundred or so.
I have made a custom made map using Google maps, and have saved multiple places to my map with different colored pins, depending on what each house is available for that day. When I go to print out the map to distribute to people, all of my different types and colors of pins revert to the standard format. They do not do this until I hit print preview. Does anyone know of a way that I can fix this?
We have implemented google map boundary in our site www.kozaza.com.Yesterday we noticed that multiple lines showing on region boundary.Can you help me to resolve this issue. I believe this is something related with google map code, because we haven't touched our code for last 1 month.
Sounds like google updated their map tiles. You should be able to style the map to remove the existing boundaries if you can't find data for borders that matches them.
Looks like they don't match the boundaries in the Natural Earth data set either:
So this might be a bit tricky to demonstrate, since the problem only appears occasionally and unpredictably--hopefully the problem shows up when you view this question (or, alternatively, has stopped appearing altogether!).
We have a Google Maps implementation on our site that displays paginated search results on a map. The current page's results appear as regular Google Maps markers (with custom icons--these work fine), but the other search results appear as smaller markers in a KML layer. An example:
http://www.redflagdeals.com/in/verdun/map/
The large markers are squarish pin images; the small markers are coloured dots. Blue and purple markers/dots simply refer to different types of content. In the KML file, we've specified two Styles, one for each content type. Other than the Icon reference, which points to the different pin images, the two elements are exactly the same. Here's an example generated KML file for reference:
http://www.redflagdeals.com/in/verdun/map/?do=map_kml&longitude=-73.56895400000002&latitude=45.457064&order=deal_price&dir=asc&category_filter=0&content_filter=0&tag_filter=0&keyword=&page=1&show=deal%20coupon
Most of the time, our map shows the large and small markers perfectly. Occasionally, though, some or all of the small pins show up without the custom icons, instead reverting to the generic blue Google marker image. Today, the custom minipins that show up in blue are broken, while the purple ones are all fine. Other times, both the blue and purple ones are broken.
The problem usually fixes itself, leaving us clueless as to the cause or the solution. The only theory I have is that we use a CDN to host our marker images, and occasionally we push a new version to the CDN while updating all the filenames simultaneously (as we have CDN version numbers in the URLs for our images). Maybe it's possible Google is requesting one or both of the small pin images right when we're pushing a new CDN version, getting a 404, and giving up immediately. But that would mean Google caches the KML images (or lack thereof) for quite a long time. Other than that, I have no ideas.
Is there anything we can do to prevent this problem from cropping up in the future?
see this post (Comment #4 specifically) explains caching of custom markers
http://code.google.com/p/gmaps-api-issues/issues/detail?id=3864
I've just tested this, the result is the following:
I'm sure Google caches both, the KML-file and the marker-images.
(Of course they do, otherwise they must load the files and create new tiles on every single request )
So when you change any marker-image, you must change the URLs of the marker-images inside the KML-file.
You also must change the URL of the KML-file inside your application(otherwise google will not recognize the modified image-URL's)
It's sufficient to append a random parameter to the URLs