Skip to content
This repository has been archived by the owner on Jun 25, 2019. It is now read-only.

Added support for paths, paths with markers, custom marker icons, and style to the static_map_provider #128

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

samlcar23
Copy link

These changes allow the static map provider to support drawing paths on the static map.

This change will work for each function that places markers on a static map only when customIcon is set to true.
Methods:
getStaticUriWithMarkers
getStaticUriWithMarkersAndZoom
getStaticUriWithPathAndMarkers
Added the ability to use custom icons for markers on the static map.
@samlcar23
Copy link
Author

The most recent commits allow the use of custom marker icons on the static map. I also added the function getStaticUriWithPathAndMarkers.

Each function that deals with markers can now be passed a Boolean value that when set to true will attempt to use the custom marker icon set on a Marker object. This value defaults to false.

@samlcar23
Copy link
Author

samlcar23 commented Oct 24, 2018

The most recent commits will allow the use of styled static maps.

A valid style string must be passed to the static_map_provider. The string should not start with '&style='

Incorrect style strings will result in a static map without any styling.

@samlcar23 samlcar23 changed the title Added support for paths to the static_map_provider Added support for paths, paths with markers, custom marker icons, and style to the static_map_provider Oct 24, 2018
Style now takes a List<String> where each string does not start with "&style=".
Added support for multiple style declarations within a single URI.
@samlcar23
Copy link
Author

samlcar23 commented Oct 29, 2018

The most recent commits will allow the use of multiple style declarations within a single URI.
The style parameter now takes a List where each string is a valid style declaration. Each declaration should not start with '&style='

Incorrect style strings will result in a static map without that particular style.

@samlcar23
Copy link
Author

The most recent commits provide the ability to color the path on the static map.

String values must meet the following requirements from Google's developer guide.

color: (optional) specifies a color either as a 24-bit (example: color=0xFFFFCC) or 32-bit hexadecimal value (example: color=0xFFFFCCFF), or from the set {black, brown, green, purple, yellow, blue, gray, orange, red, white}.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant