All Projects → joeltrew → Gradientpathrenderer

joeltrew / Gradientpathrenderer

Licence: mit
Renders MKPolyline with a fancy multicoloured gradient fill

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Gradientpathrenderer

Osmic
CC0 SVG Map Icons, mirror of repo on Gitlab
Stars: ✭ 89 (-20.54%)
Mutual labels:  maps
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
Maps.js
NAVER Maps JavaScript API v3
Stars: ✭ 101 (-9.82%)
Mutual labels:  maps
Locationpicker
Location picker for Flutter.
Stars: ✭ 84 (-25%)
Mutual labels:  maps
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
Yii2 Google Maps Library
Google Maps API library for Yii2
Stars: ✭ 104 (-7.14%)
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
Typrogressbar
Custom animating gradient progress bar
Stars: ✭ 106 (-5.36%)
Mutual labels:  gradient
Geoswift
The Swift Geometry Engine.
Stars: ✭ 1,267 (+1031.25%)
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

  1. Add GradientPathRenderer.swift to your project
  2. 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
    }
}
  1. Optionally include border and borderColor 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].