Как установить gmaps4rails для отображения вида Terrain прямо или по умолчанию для всего приложения?gmaps4rails default setting to Terrain view по умолчанию
2
A
ответ
2
Значение по умолчанию, используемое для отображения таково:
container_id: "map_container",
id: "map",
type: "ROADMAP", // HYBRID, ROADMAP, SATELLITE, TERRAIN
center_latitude : 0,
center_longitude: 0,
disableDefaultUI: false,
disableDoubleClickZoom: false,
draggable: true,
mapTypeControl: null, // display the map type dropdown, unless set to false it will be displayed
detect_location: false, // should the browser attempt to use geolocation detection features of HTML5?
center_on_user: false, // centers map on the location detected through the browser
zoom : 1, // initial zoom
maxZoom: null, //max zoom level
minZoom: null, //min zoom level
auto_adjust: true, //adjust the map to the markers if set to true
auto_zoom: true //comes with auto_adjust. Choose whether or not you want to use an automatic zoom or the one you set in the 'zoom' option.
bounds: [] //adjust map to these limits. Should be [{"lat": , "lng": }, {"lat": , "lng": } ...]
Я не знаю, как изменить настройки по умолчанию для всего приложения, но вы canchange от дорожной карты МЕСТНОСТИ в представлениях:
<%= gmaps({"map_options" => { type => "TERRAIN" })%>
0
Вы можете изменить настройки по умолчанию в
/assets/javascript/gmaps4rails/gmaps4rails.googlemaps.js.coffee
Смежные вопросы
- 1. Google Maps Terrain View По умолчанию
- 2. Google Maps v3 Terrain View По умолчанию
- 3. jQuery Полный календарь Default View Setting
- 4. JQuery Full Calendar Default View Setting Issue
- 5. jquery collapsable default setting
- 6. opencv videocapture default setting
- 7. default maven compiler setting
- 8. Gmaps4Rails настройка масштабирования по умолчанию
- 9. gmaps4rails open infowindow по умолчанию
- 10. sqlalchemy not setting timestmap default
- 11. AngularJS ng-repeat setting default value value
- 12. Facebook sharer.php - default view
- 13. Gmaps4rails V2 - изменить масштаб по умолчанию
- 14. iphone TabBarController default view
- 15. «Default» view в UITabBarController
- 16. Default Equivalent to DBNull.Value
- 17. asp.net calendar default month view
- 18. Worklight 6 - Default startup View
- 19. Java 2D Side-View Terrain Generation
- 20. Asp.net identity add drop down list to default register view
- 21. XCode 6.2 Default View Controller
- 22. Карты Google - с использованием пользовательского стиля json * и * TERRAIN view
- 23. используйте категорию default по-умолчанию в качестве изображений по умолчанию
- 24. Sharepoint default item view detail
- 25. Symfony2 set default view variables
- 26. python celery max-tasks-for-child-setting default
- 27. JsonView - define Default View
- 28. Default GWT Checkbox to unchecked
- 29. swing scrollpane setting to textpane
- 30. Default custom route on SonataORMAdmin list view