Is there a Polymer 1.0 element that allows to crop and upload images? - polymer-1.0

Can't seem to find an existing polymer element that supports both image cropping and ajax file upload. Anyone come across such an element?

Related

svg sprite load with webpack and react

Hi I am using svg sprite I created using icons8 website for all my website icons, and the icons are working but it seems that the website loads them more than once per page (if i open the network tab i can see it loaded twice or more). I have been looking for a solution for a while now and I cant seem to find the cause of this.
I work with react so I have a component for Icon which uses the tag with xlinkHref attribute.
did anyone encounter such behavior? if yes what would be the best way to approach a solution?

Custom marker with Angular Google Maps

I am using the Angular Google maps directive to show maps on my webpage. Currently my markers are created using SVG but this is slow as I have to pass my information into a function that creates an SVG in memory to pass to the Google Icon. So I want to replace it with a custom HTML marker which will hopefully be less code and can leverage CSS classes for lots of the heavy lifting.
Unfortunately this isn't available as standard within the Angular Google Maps markers (unless I havent seen it?!)
I found a tutorial on how to do this with Overlays but I need clustering to work with my icons.
How can I do this? Without rewriting everything from scratch? Ideally I'd like to leverage as much of the existing angular-google-maps code as possible
The way I ended up doing this was to put in rich HTML into the labelContent property, setting a class on it via labelClass and then setting the icon to be transparent (https://maps.gstatic.com/mapfiles/transparent.png)
This way the actual icon is invisible but you can create rich HTML / CSS markers through the label. And this doesnt break functionality with the clusterer

How do I create video thumbnails in Codename one?

Is there a way to generate thumbnail like images from a stored video in codename one?
I have a codename list that uses the generic renderer and has a list of strings which are a local path to either a video or an image. Is there a way to display either the image or a thumbnail of the video on the multiButton icon?
You’ll need to use a native interface. Looks like both iOS and Android support thumbnails from video.
Getting a thumbnail from a video url or data in iPhone SDK
How to create video thumbnail from video file path in Android
You could also do it server-side and then load the thumbnails from your app. E.g. Cloudinary supports generating video thumbnails.
http://cloudinary.com/documentation/video_manipulation_and_delivery
The Cloudinary cn1lib is available here:
https://github.com/shannah/cloudinary-codenameone

Qt5/QML Displaying a custom route on a map

What would be the best way to draw a custom route on a QML Map with a set of given coordinates?
Basically, all I need is that the map highlights the path along the road and does not go straight to each point.
No animations needed either.
Edit:
I need it to be in a desktop application.
One option is to display a HTML website using Leaflet or OpenLayers. Both support displaying a GPX track. The track can be obtained by using one of the various online routers for OSM.

error in embedding deep zoom

I created a website separately first and then opened it in Expression web to insert the deep zoom image in, but I keep getting this error:
"Add the page to a site and then try to insert the deep zoom image"
I have no idea what to do next, could somebody please point me in the right direction?
Where are you inserting the image? Deep zoom image is not a single image. It is collection of images. One embeds the deep zoom player that comes with deep zoom composer into a web page to display those images. Did you use deep zoom composer for creating deep zoom images? You can try http://www.imagesurf.net which allows online automated deep zoom/open zoom of photos and also allows to embed it in your web page. I am affiliated with the site.

Resources