Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- InvalidValueError: setMapTypeId: not a string
- // Create an array of styles.
- var styles = [{
- ...
- }]
- var styledMap = new google.maps.StyledMapType(styles,{name: "Styled Map"});
- var myOptions = {
- ...
- }
- map = new google.maps.Map(document.getElementById('map_canvas'), myOptions);
- map.mapTypes.set('map_style', styledMap);
- map.setMapTypeId('map_style');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement