nufitmedia / gmaps-samples-v3

Automatically exported from code.google.com/p/gmaps-samples-v3
0 stars 0 forks source link

breaking typo in styledmaps wizard #28

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Follow the instructions here: 
http://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/wizard/index.html
2. Your map will not display your custom styles.

To fix this:
3. Pass the JSON to `MapOptions.styles` instead of `MapOptions.style`

Just need to add an 's' to the instructions so people trying it out will not be 
misled and think it is broken.

Corrected instruction text below
====================

How to use the Styled Maps Wizard

Navigate to the map region you wish to use to preview your style. Jump to a 
particular location using the Enter a location field in the top right.
Select a type of feature to style in the Selectors panel.
If you only wish to style the Geometry or Labels for the selected feature type, 
select the required Element Type.
Select the combination of Stylers to apply to the selected feature type.
Once you are happy with the styling of the feature type, click the Add button 
in the Map Style panel to save the style and create a new style to work on.
Repeat Steps 2 to 5 to build up the set of styles for your map. Styles are 
applied in the order they are listed in the Map Style panel.
Select an existing style in the Map Style panel to edit it.
Delete a style by clicking on the trashcan icon to the right of the style 
number.
When you are happy with your Styled Map, click the Show JSON button to display 
the JSON object to pass to the `styles` property of your `MapOptions` object in 
order to apply the style to a Maps API v3 Map.
To generate an example map with this style using the Static Maps API, click the 
Static Map button.
For more information on Map Styling, please see the Maps API v3 Documentation, 
and Static Maps API Documentation.

Original issue reported on code.google.com by kerryspy...@gmail.com on 2 Mar 2015 at 7:27