joeltrew / Gradientpathrenderer
Licence: mit
Renders MKPolyline with a fancy multicoloured gradient fill
Stars: ✭ 112
Programming Languages
swift
15916 projects
Projects that are alternatives of or similar to Gradientpathrenderer
Polished Map
A map and tileset editor for pokecrystal, pokered, and hacks based on them like Polished Crystal. Written in C++ with FLTK.
Stars: ✭ 100 (-10.71%)
Mutual labels: maps
Osmscout Server
Maps server providing tiles, geocoder, and router
Stars: ✭ 105 (-6.25%)
Mutual labels: maps
Leaflet Tilefilter
Change the appearance of Leaflet map tiles on the fly using a variety of canvas or CSS3 image filters. It's like Instagram for Leaflet map tiles.
Stars: ✭ 90 (-19.64%)
Mutual labels: maps
Kaloader
Beautiful animated placeholders for showing loading of data
Stars: ✭ 99 (-11.61%)
Mutual labels: gradient
Fireshodanmap
FireShodanMap is a Realtime map that integrates Firebase, Google Maps and Shodan. A search is carried out using Shodan searching vulnerable devices and they are showed on the map for analysis. All data updated in Firebase are Realtime.
Stars: ✭ 111 (-0.89%)
Mutual labels: maps
Contacts
A flutter project with Implementation of a Contacts app in 4 ways (API, Custom, Preferences and Sqflite).
Stars: ✭ 100 (-10.71%)
Mutual labels: maps
Colorgrad
Go (Golang) color scales library for maps, charts, data-visualization & creative coding.
Stars: ✭ 96 (-14.29%)
Mutual labels: gradient
Awesome Gradient
😎 A curated list of awesome Gradient frameworks, libraries and software and resources
Stars: ✭ 98 (-12.5%)
Mutual labels: gradient
Webodm
User-friendly, commercial-grade software for processing aerial imagery. 🛩
Stars: ✭ 1,385 (+1136.61%)
Mutual labels: maps
Stayfit
📱 🏃 🍎 Fitness application that’s used to keep track of your physical fitness data, daily calorie count, invite friends to work out together and ultimately get healthy.
Stars: ✭ 90 (-19.64%)
Mutual labels: maps
Place Atlas
The /r/place Atlas is a project aiming to catalog all the artworks created during Reddit's /r/place event.
Stars: ✭ 100 (-10.71%)
Mutual labels: maps
Bingmapsv8codesamples
This is a collection of over two hundred code samples an growing for the Bing Maps V8 web control.
Stars: ✭ 111 (-0.89%)
Mutual labels: maps
Storymap
A JavaScript library for digital storytelling with web maps.
Stars: ✭ 107 (-4.46%)
Mutual labels: maps
Complete Google Map Api Tutorial
Learn How to use Google Map API for Android from Basic to Advance with complete examples.
Stars: ✭ 104 (-7.14%)
Mutual labels: maps
GradientPathRenderer
Renders MKPolyline with a fancy multicoloured gradient fill similar to the Nike + Running App. A drop in replacement for MKPolylineRenderer, supports multiple colour stops and an optional border.
Installation
- Add GradientPathRenderer.swift to your project
- Inside
rendererForOverlay
delegate method, use GradientPathRenderer as you would an MKPolyLineRenderer
func mapView(mapView: MKMapView, rendererForOverlay overlay: MKOverlay) -> MKOverlayRenderer {
if let overlay = overlay as? MKPolyline {
/// define a list of colors you want in your gradient
let gradientColors = [UIColor.green, UIColor.blue, UIColor.yellow, UIColor.red]
/// Initialise a GradientPathRenderer with the colors
let polylineRenderer = GradientPathRenderer(polyline: overlay, colors: gradientColors)
/// set a linewidth
polylineRenderer.lineWidth = 7
return polylineRenderer
}
}
- Optionally include
border
andborderColor
variables to render a border on the polyline
polylineRenderer.border = true
polylineRenderer.borderColor = UIColor.red /* defaults to white if not specified*/
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].