├── .gitignore ├── .travis.yml ├── CHANGELOG.md ├── LICENSE ├── README-dev.md ├── README.md ├── analysis_options.yaml ├── build.yaml ├── example ├── README.md ├── aerial-rotation │ ├── map.html │ └── page.dart ├── aerial-simple │ ├── map.html │ └── page.dart ├── circle-simple │ ├── map.html │ └── page.dart ├── control-bounds-restriction │ ├── map.html │ └── page.dart ├── control-custom-state │ ├── map.html │ └── page.dart ├── control-custom │ ├── map.html │ └── page.dart ├── control-default │ ├── map.html │ └── page.dart ├── control-disableUI │ ├── map.html │ └── page.dart ├── control-options │ ├── map.html │ └── page.dart ├── control-positioning │ ├── map.html │ └── page.dart ├── control-replacement │ ├── map.html │ └── page.dart ├── control-simple │ ├── map.html │ └── page.dart ├── directions-complex │ ├── map.html │ └── page.dart ├── directions-draggable │ ├── map.html │ └── page.dart ├── directions-panel │ ├── map.html │ └── page.dart ├── directions-simple │ ├── map.html │ └── page.dart ├── directions-travel-modes │ ├── map.html │ └── page.dart ├── directions-waypoints │ ├── map.html │ └── page.dart ├── distance-matrix │ ├── map.html │ └── page.dart ├── drawing-tools │ ├── map.html │ └── page.dart ├── elevation-paths │ ├── map.html │ └── page.dart ├── elevation-simple │ ├── map.html │ └── page.dart ├── event-arguments │ ├── map.html │ └── page.dart ├── event-click-latlng │ ├── map.html │ └── page.dart ├── event-closure │ ├── map.html │ └── page.dart ├── event-domListener │ ├── map.html │ └── page.dart ├── event-poi │ ├── map.html │ └── page.dart ├── event-properties │ ├── map.html │ └── page.dart ├── event-simple copy │ ├── map.html │ └── page.dart ├── event-simple │ ├── map.html │ └── page.dart ├── geocoding-region-es │ ├── map.html │ └── page.dart ├── geocoding-region-us │ ├── map.html │ └── page.dart ├── geocoding-reverse │ ├── map.html │ └── page.dart ├── geocoding-simple │ ├── map.html │ └── page.dart ├── geometry-encodings │ ├── map.html │ └── page.dart ├── geometry-headings │ ├── map.html │ └── page.dart ├── groundoverlay-simple │ ├── map.html │ └── page.dart ├── icon-complex │ ├── map.html │ └── page.dart ├── icon-simple │ ├── map.html │ └── page.dart ├── infowindow-simple-max │ ├── map.html │ └── page.dart ├── infowindow-simple │ ├── map.html │ └── page.dart ├── inset-map │ ├── map.html │ └── page.dart ├── interaction-cooperative │ ├── map.html │ └── page.dart ├── layer-bicycling │ ├── map.html │ └── page.dart ├── layer-data-dragndrop │ ├── data.json │ ├── map.html │ └── page.dart ├── layer-data-dynamic │ ├── map.html │ └── page.dart ├── layer-data-event │ ├── map.html │ └── page.dart ├── layer-data-quakes │ ├── map.html │ └── page.dart ├── layer-data-simple │ ├── map.html │ └── page.dart ├── layer-data-style │ ├── map.html │ └── page.dart ├── layer-georss │ ├── map.html │ └── page.dart ├── layer-heatmap │ ├── map.html │ └── page.dart ├── layer-kml-features │ ├── map.html │ └── page.dart ├── layer-kml │ ├── map.html │ └── page.dart ├── layer-traffic │ ├── map.html │ └── page.dart ├── layer-transit │ ├── map.html │ └── page.dart ├── map-coordinates │ ├── map.html │ └── page.dart ├── map-geolocation │ ├── map.html │ └── page.dart ├── map-language │ ├── map.html │ └── page.dart ├── map-projection-simple │ ├── map.html │ └── page.dart ├── map-rtl │ ├── map.html │ └── page.dart ├── map-simple-async │ ├── map.html │ └── page.dart ├── map-simple │ ├── map.html │ └── page.dart ├── maptype-base │ ├── map.html │ └── page.dart ├── maptype-image-overlay │ ├── map.html │ └── page.dart ├── maptype-image │ ├── map.html │ └── page.dart ├── maptype-overlay │ ├── map.html │ └── page.dart ├── maptype-styled-complex │ ├── map.html │ └── page.dart ├── maptype-styled-simple │ ├── map.html │ └── page.dart ├── marker-animations-iteration │ ├── map.html │ └── page.dart ├── marker-animations │ ├── map.html │ └── page.dart ├── marker-remove │ ├── map.html │ └── page.dart ├── marker-simple │ ├── map.html │ └── page.dart ├── marker-symbol-custom │ ├── map.html │ └── page.dart ├── marker-symbol-predefined │ ├── map.html │ └── page.dart ├── maxzoom-simple │ ├── map.html │ └── page.dart ├── overlay-hideshow │ ├── map.html │ └── page.dart ├── overlay-remove │ ├── map.html │ └── page.dart ├── overlay-simple │ ├── map.html │ └── page.dart ├── overlay-symbol-animate │ ├── map.html │ └── page.dart ├── overlay-symbol-arrow │ ├── map.html │ └── page.dart ├── overlay-symbol-custom │ ├── map.html │ └── page.dart ├── overlay-symbol-dashed │ ├── map.html │ └── page.dart ├── place-details │ ├── map.html │ └── page.dart ├── place-search-pagination │ ├── map.html │ └── page.dart ├── place-search │ ├── map.html │ └── page.dart ├── places-autocomplete-addressform │ ├── map.html │ └── page.dart ├── places-autocomplete-hotelsearch │ ├── map.html │ └── page.dart ├── places-autocomplete │ ├── map.html │ └── page.dart ├── places-queryprediction │ ├── map.html │ └── page.dart ├── places-searchbox │ ├── map.html │ └── page.dart ├── poly-containsLocation │ ├── map.html │ └── page.dart ├── polygon-arrays │ ├── map.html │ └── page.dart ├── polygon-autoclose │ ├── map.html │ └── page.dart ├── polygon-draggable │ ├── map.html │ └── page.dart ├── polygon-simple │ ├── map.html │ └── page.dart ├── polyline-complex │ ├── map.html │ └── page.dart ├── polyline-remove │ ├── map.html │ └── page.dart ├── polyline-simple │ ├── map.html │ └── page.dart ├── rectangle-event │ ├── map.html │ └── page.dart ├── rectangle-simple │ ├── map.html │ └── page.dart ├── rectangle-zoom │ ├── map.html │ └── page.dart ├── split-map-panes │ ├── map.html │ └── page.dart ├── streetview-controls │ ├── map.html │ └── page.dart ├── streetview-custom-simple │ ├── map.html │ └── page.dart ├── streetview-custom-tiles │ ├── map.html │ └── page.dart ├── streetview-embed │ ├── map.html │ └── page.dart ├── streetview-event │ ├── map.html │ └── page.dart ├── streetview-overlays │ ├── map.html │ └── page.dart ├── streetview-service │ ├── map.html │ └── page.dart ├── streetview-simple │ ├── map.html │ └── page.dart └── user-editable-shapes │ ├── map.html │ └── page.dart ├── lib ├── google_maps.dart ├── google_maps_core.dart ├── google_maps_drawing.dart ├── google_maps_elevation.dart ├── google_maps_geocoding.dart ├── google_maps_geometry.dart ├── google_maps_journeysharing.dart ├── google_maps_maps.dart ├── google_maps_maps3d.dart ├── google_maps_marker.dart ├── google_maps_places.dart ├── google_maps_routes.dart ├── google_maps_streetview.dart ├── google_maps_visualization.dart └── src │ ├── generated │ ├── 3d_map.dart │ ├── 3d_map │ │ ├── altitude_mode.dart │ │ ├── camera_options.dart │ │ ├── fly_around_animation_options.dart │ │ ├── fly_to_animation_options.dart │ │ ├── location_click_event.dart │ │ ├── map_3_delement.dart │ │ ├── map_3_delement_options.dart │ │ ├── marker_3_delement.dart │ │ ├── marker_3_delement_options.dart │ │ ├── marker_3_dinteractive_element.dart │ │ ├── marker_3_dinteractive_element_options.dart │ │ ├── model_3_delement.dart │ │ ├── model_3_delement_options.dart │ │ ├── place_click_event.dart │ │ ├── polygon_3_delement.dart │ │ ├── polygon_3_delement_options.dart │ │ ├── polyline_3_delement.dart │ │ ├── polyline_3_delement_options.dart │ │ └── steady_change_event.dart │ ├── advanced_markers.dart │ ├── advanced_markers │ │ ├── advanced_marker_click_event.dart │ │ ├── advanced_marker_element.dart │ │ ├── advanced_marker_element_options.dart │ │ ├── pin_element.dart │ │ └── pin_element_options.dart │ ├── autocomplete_data.dart │ ├── autocomplete_data │ │ ├── autocomplete_request.dart │ │ ├── autocomplete_session_token.dart │ │ ├── autocomplete_suggestion.dart │ │ ├── formattable_text.dart │ │ ├── place_prediction.dart │ │ └── string_range.dart │ ├── control.dart │ ├── control │ │ ├── camera_control_options.dart │ │ ├── control_position.dart │ │ ├── fullscreen_control_options.dart │ │ ├── map_type_control_options.dart │ │ ├── map_type_control_style.dart │ │ ├── motion_tracking_control_options.dart │ │ ├── pan_control_options.dart │ │ ├── rotate_control_options.dart │ │ ├── scale_control_options.dart │ │ ├── scale_control_style.dart │ │ ├── street_view_control_options.dart │ │ └── zoom_control_options.dart │ ├── coordinates.dart │ ├── coordinates │ │ ├── circle_literal.dart │ │ ├── lat_lng.dart │ │ ├── lat_lng_altitude.dart │ │ ├── lat_lng_altitude_literal.dart │ │ ├── lat_lng_bounds.dart │ │ ├── lat_lng_bounds_literal.dart │ │ ├── lat_lng_literal.dart │ │ ├── orientation_3.dart │ │ ├── orientation_3_dliteral.dart │ │ ├── padding.dart │ │ ├── point.dart │ │ ├── size.dart │ │ ├── vector_3.dart │ │ └── vector_3_dliteral.dart │ ├── data.dart │ ├── data │ │ ├── data.dart │ │ ├── data_add_feature_event.dart │ │ ├── data_data_options.dart │ │ ├── data_feature.dart │ │ ├── data_feature_options.dart │ │ ├── data_geo_json_options.dart │ │ ├── data_geometry.dart │ │ ├── data_geometry_collection.dart │ │ ├── data_line_string.dart │ │ ├── data_linear_ring.dart │ │ ├── data_mouse_event.dart │ │ ├── data_multi_line_string.dart │ │ ├── data_multi_point.dart │ │ ├── data_multi_polygon.dart │ │ ├── data_point.dart │ │ ├── data_polygon.dart │ │ ├── data_remove_feature_event.dart │ │ ├── data_remove_property_event.dart │ │ ├── data_set_geometry_event.dart │ │ ├── data_set_property_event.dart │ │ ├── data_style_options.dart │ │ └── data_styling_function.dart │ ├── data_driven_styling.dart │ ├── data_driven_styling │ │ ├── dataset_feature.dart │ │ ├── feature.dart │ │ ├── feature_layer.dart │ │ ├── feature_mouse_event.dart │ │ ├── feature_style_function.dart │ │ ├── feature_style_function_options.dart │ │ ├── feature_style_options.dart │ │ ├── feature_type.dart │ │ └── place_feature.dart │ ├── directions.dart │ ├── directions │ │ ├── directions_geocoded_waypoint.dart │ │ ├── directions_leg.dart │ │ ├── directions_polyline.dart │ │ ├── directions_renderer.dart │ │ ├── directions_renderer_options.dart │ │ ├── directions_request.dart │ │ ├── directions_result.dart │ │ ├── directions_route.dart │ │ ├── directions_service.dart │ │ ├── directions_status.dart │ │ ├── directions_step.dart │ │ ├── directions_travel_mode.dart │ │ ├── directions_unit_system.dart │ │ ├── directions_waypoint.dart │ │ ├── distance.dart │ │ ├── driving_options.dart │ │ ├── duration.dart │ │ ├── place.dart │ │ ├── time.dart │ │ ├── traffic_model.dart │ │ ├── transit_agency.dart │ │ ├── transit_details.dart │ │ ├── transit_fare.dart │ │ ├── transit_line.dart │ │ ├── transit_mode.dart │ │ ├── transit_options.dart │ │ ├── transit_route_preference.dart │ │ ├── transit_stop.dart │ │ ├── transit_vehicle.dart │ │ ├── travel_mode.dart │ │ ├── unit_system.dart │ │ └── vehicle_type.dart │ ├── distance_matrix.dart │ ├── distance_matrix │ │ ├── distance_matrix_element_status.dart │ │ ├── distance_matrix_request.dart │ │ ├── distance_matrix_response.dart │ │ ├── distance_matrix_response_element.dart │ │ ├── distance_matrix_response_row.dart │ │ ├── distance_matrix_service.dart │ │ └── distance_matrix_status.dart │ ├── drawing.dart │ ├── drawing │ │ ├── drawing_control_options.dart │ │ ├── drawing_manager.dart │ │ ├── drawing_manager_options.dart │ │ ├── overlay_complete_event.dart │ │ └── overlay_type.dart │ ├── elevation.dart │ ├── elevation │ │ ├── elevation_result.dart │ │ ├── elevation_service.dart │ │ ├── elevation_status.dart │ │ ├── location_elevation_request.dart │ │ ├── location_elevation_response.dart │ │ ├── path_elevation_request.dart │ │ └── path_elevation_response.dart │ ├── errors.dart │ ├── errors │ │ ├── maps_network_error.dart │ │ ├── maps_network_error_endpoint.dart │ │ ├── maps_request_error.dart │ │ └── maps_server_error.dart │ ├── event.dart │ ├── event │ │ ├── error_event.dart │ │ ├── event.dart │ │ ├── maps_event_listener.dart │ │ ├── mvcarray.dart │ │ └── mvcobject.dart │ ├── geocoder.dart │ ├── geocoder │ │ ├── address_descriptor.dart │ │ ├── area.dart │ │ ├── containment.dart │ │ ├── extra_geocode_computation.dart │ │ ├── geocoder.dart │ │ ├── geocoder_address_component.dart │ │ ├── geocoder_component_restrictions.dart │ │ ├── geocoder_geometry.dart │ │ ├── geocoder_location_type.dart │ │ ├── geocoder_request.dart │ │ ├── geocoder_response.dart │ │ ├── geocoder_result.dart │ │ ├── geocoder_status.dart │ │ ├── landmark.dart │ │ └── spatial_relationship.dart │ ├── geometry.dart │ ├── geometry │ │ ├── encoding.dart │ │ ├── poly.dart │ │ └── spherical.dart │ ├── image_overlay.dart │ ├── image_overlay │ │ ├── ground_overlay.dart │ │ ├── ground_overlay_options.dart │ │ ├── image_map_type.dart │ │ ├── image_map_type_options.dart │ │ ├── map_type.dart │ │ ├── projection.dart │ │ ├── styled_map_type.dart │ │ └── styled_map_type_options.dart │ ├── info_window.dart │ ├── info_window │ │ ├── info_window.dart │ │ ├── info_window_open_options.dart │ │ └── info_window_options.dart │ ├── journey_sharing_authentication.dart │ ├── journey_sharing_authentication │ │ ├── auth_token.dart │ │ ├── auth_token_context.dart │ │ ├── auth_token_fetcher.dart │ │ ├── auth_token_fetcher_options.dart │ │ └── fleet_engine_service_type.dart │ ├── journey_sharing_fleet_engine_entities.dart │ ├── journey_sharing_fleet_engine_entities │ │ ├── delivery_vehicle.dart │ │ ├── delivery_vehicle_stop.dart │ │ ├── delivery_vehicle_stop_state.dart │ │ ├── speed.dart │ │ ├── speed_reading_interval.dart │ │ ├── task.dart │ │ ├── task_info.dart │ │ ├── task_tracking_info.dart │ │ ├── time_window.dart │ │ ├── trip.dart │ │ ├── trip_type.dart │ │ ├── trip_waypoint.dart │ │ ├── vehicle.dart │ │ ├── vehicle_journey_segment.dart │ │ ├── vehicle_location_update.dart │ │ ├── vehicle_navigation_status.dart │ │ ├── vehicle_state.dart │ │ ├── vehicle_type.dart │ │ ├── vehicle_waypoint.dart │ │ └── waypoint_type.dart │ ├── journey_sharing_fleet_tracking.dart │ ├── journey_sharing_fleet_tracking │ │ ├── fleet_engine_delivery_fleet_location_provider.dart │ │ ├── fleet_engine_delivery_fleet_location_provider_options.dart │ │ ├── fleet_engine_delivery_fleet_location_provider_update_event.dart │ │ ├── fleet_engine_delivery_vehicle_location_provider.dart │ │ ├── fleet_engine_delivery_vehicle_location_provider_options.dart │ │ ├── fleet_engine_delivery_vehicle_location_provider_update_event.dart │ │ └── fleet_engine_task_filter_options.dart │ ├── journey_sharing_fleet_tracking_odrd.dart │ ├── journey_sharing_fleet_tracking_odrd │ │ ├── fleet_engine_fleet_location_provider.dart │ │ ├── fleet_engine_fleet_location_provider_options.dart │ │ ├── fleet_engine_fleet_location_provider_update_event.dart │ │ ├── fleet_engine_vehicle_location_provider.dart │ │ ├── fleet_engine_vehicle_location_provider_options.dart │ │ └── fleet_engine_vehicle_location_provider_update_event.dart │ ├── journey_sharing_map_view.dart │ ├── journey_sharing_map_view │ │ ├── automatic_viewport_mode.dart │ │ ├── journey_sharing_map_view.dart │ │ ├── journey_sharing_map_view_options.dart │ │ ├── location_provider.dart │ │ ├── polling_location_provider.dart │ │ └── polling_location_provider_is_polling_change_event.dart │ ├── journey_sharing_shipment_tracking.dart │ ├── journey_sharing_shipment_tracking │ │ ├── fleet_engine_shipment_location_provider.dart │ │ ├── fleet_engine_shipment_location_provider_options.dart │ │ └── fleet_engine_shipment_location_provider_update_event.dart │ ├── journey_sharing_trip_and_order_progress.dart │ ├── journey_sharing_trip_and_order_progress │ │ ├── fleet_engine_trip_location_provider.dart │ │ ├── fleet_engine_trip_location_provider_options.dart │ │ └── fleet_engine_trip_location_provider_update_event.dart │ ├── journey_sharing_ui_customization.dart │ ├── journey_sharing_ui_customization │ │ ├── default_marker_setup_options.dart │ │ ├── default_polyline_setup_options.dart │ │ ├── delivery_vehicle_marker_customization_function_params.dart │ │ ├── delivery_vehicle_polyline_customization_function_params.dart │ │ ├── marker_customization_function_params.dart │ │ ├── marker_setup.dart │ │ ├── marker_setup_options.dart │ │ ├── planned_stop_marker_customization_function_params.dart │ │ ├── polyline_customization_function_params.dart │ │ ├── polyline_setup.dart │ │ ├── polyline_setup_options.dart │ │ ├── shipment_marker_customization_function_params.dart │ │ ├── shipment_polyline_customization_function_params.dart │ │ ├── task_marker_customization_function_params.dart │ │ ├── trip_marker_customization_function_params.dart │ │ ├── trip_polyline_customization_function_params.dart │ │ ├── trip_waypoint_marker_customization_function_params.dart │ │ ├── vehicle_marker_customization_function_params.dart │ │ ├── vehicle_polyline_customization_function_params.dart │ │ └── vehicle_waypoint_marker_customization_function_params.dart │ ├── kml.dart │ ├── kml │ │ ├── kml_author.dart │ │ ├── kml_feature_data.dart │ │ ├── kml_layer.dart │ │ ├── kml_layer_metadata.dart │ │ ├── kml_layer_options.dart │ │ ├── kml_layer_status.dart │ │ └── kml_mouse_event.dart │ ├── local_context_map_view.dart │ ├── local_context_map_view │ │ ├── local_context_map_view.dart │ │ ├── local_context_map_view_options.dart │ │ ├── map_directions_options.dart │ │ ├── map_directions_options_literal.dart │ │ ├── pin_options.dart │ │ ├── place_chooser_layout_mode.dart │ │ ├── place_chooser_position.dart │ │ ├── place_chooser_view_setup_options.dart │ │ ├── place_details_layout_mode.dart │ │ ├── place_details_position.dart │ │ ├── place_details_view_setup_options.dart │ │ └── place_type_preference.dart │ ├── map.dart │ ├── map │ │ ├── bicycling_layer.dart │ │ ├── camera_options.dart │ │ ├── color_scheme.dart │ │ ├── icon_mouse_event.dart │ │ ├── map.dart │ │ ├── map_capabilities.dart │ │ ├── map_element.dart │ │ ├── map_element_options.dart │ │ ├── map_mouse_event.dart │ │ ├── map_options.dart │ │ ├── map_restriction.dart │ │ ├── map_type_id.dart │ │ ├── map_type_registry.dart │ │ ├── map_type_style.dart │ │ ├── rendering_type.dart │ │ ├── traffic_layer.dart │ │ ├── traffic_layer_options.dart │ │ ├── transit_layer.dart │ │ ├── visible_region.dart │ │ └── zoom_change_event.dart │ ├── marker.dart │ ├── marker │ │ ├── animation.dart │ │ ├── collision_behavior.dart │ │ ├── icon.dart │ │ ├── marker.dart │ │ ├── marker_label.dart │ │ ├── marker_options.dart │ │ ├── marker_shape.dart │ │ ├── symbol.dart │ │ └── symbol_path.dart │ ├── max_zoom.dart │ ├── max_zoom │ │ ├── max_zoom_result.dart │ │ ├── max_zoom_service.dart │ │ └── max_zoom_status.dart │ ├── overlay_view.dart │ ├── overlay_view │ │ ├── map_canvas_projection.dart │ │ ├── map_panes.dart │ │ └── overlay_view.dart │ ├── place.dart │ ├── place │ │ ├── accessibility_options.dart │ │ ├── address_component.dart │ │ ├── attribution.dart │ │ ├── author_attribution.dart │ │ ├── connector_aggregation.dart │ │ ├── evcharge_options.dart │ │ ├── evconnector_type.dart │ │ ├── evsearch_options.dart │ │ ├── fetch_fields_request.dart │ │ ├── fuel_options.dart │ │ ├── fuel_price.dart │ │ ├── fuel_type.dart │ │ ├── money.dart │ │ ├── opening_hours.dart │ │ ├── opening_hours_period.dart │ │ ├── opening_hours_point.dart │ │ ├── parking_options.dart │ │ ├── payment_options.dart │ │ ├── photo.dart │ │ ├── place.dart │ │ ├── place_options.dart │ │ ├── plus_code.dart │ │ ├── price_level.dart │ │ ├── review.dart │ │ ├── search_by_text_rank_preference.dart │ │ ├── search_by_text_request.dart │ │ ├── search_nearby_rank_preference.dart │ │ └── search_nearby_request.dart │ ├── places_autocomplete_service.dart │ ├── places_autocomplete_service │ │ ├── autocomplete_prediction.dart │ │ ├── autocomplete_response.dart │ │ ├── autocomplete_service.dart │ │ ├── autocompletion_request.dart │ │ ├── component_restrictions.dart │ │ ├── prediction_substring.dart │ │ ├── prediction_term.dart │ │ ├── query_autocomplete_prediction.dart │ │ ├── query_autocompletion_request.dart │ │ └── structured_formatting.dart │ ├── places_service.dart │ ├── places_service │ │ ├── business_status.dart │ │ ├── find_place_from_phone_number_request.dart │ │ ├── find_place_from_query_request.dart │ │ ├── location_bias.dart │ │ ├── location_restriction.dart │ │ ├── photo_options.dart │ │ ├── place_aspect_rating.dart │ │ ├── place_details_request.dart │ │ ├── place_geometry.dart │ │ ├── place_opening_hours.dart │ │ ├── place_opening_hours_period.dart │ │ ├── place_opening_hours_time.dart │ │ ├── place_photo.dart │ │ ├── place_plus_code.dart │ │ ├── place_result.dart │ │ ├── place_review.dart │ │ ├── place_search_pagination.dart │ │ ├── place_search_request.dart │ │ ├── places_service.dart │ │ ├── places_service_status.dart │ │ ├── rank_by.dart │ │ └── text_search_request.dart │ ├── places_widget.dart │ ├── places_widget │ │ ├── autocomplete.dart │ │ ├── autocomplete_options.dart │ │ ├── place_autocomplete_element.dart │ │ ├── place_autocomplete_element_options.dart │ │ ├── place_autocomplete_place_select_event.dart │ │ ├── place_autocomplete_request_error_event.dart │ │ ├── search_box.dart │ │ └── search_box_options.dart │ ├── polygon.dart │ ├── polygon │ │ ├── circle.dart │ │ ├── circle_options.dart │ │ ├── icon_sequence.dart │ │ ├── poly_mouse_event.dart │ │ ├── polygon.dart │ │ ├── polygon_options.dart │ │ ├── polyline.dart │ │ ├── polyline_options.dart │ │ ├── rectangle.dart │ │ ├── rectangle_options.dart │ │ └── stroke_position.dart │ ├── settings.dart │ ├── settings │ │ └── settings.dart │ ├── street_view.dart │ ├── street_view │ │ ├── pano_provider_options.dart │ │ ├── street_view_address_control_options.dart │ │ ├── street_view_coverage_layer.dart │ │ ├── street_view_panorama.dart │ │ ├── street_view_panorama_options.dart │ │ ├── street_view_pov.dart │ │ └── street_view_tile_data.dart │ ├── street_view_service.dart │ ├── street_view_service │ │ ├── street_view_link.dart │ │ ├── street_view_location.dart │ │ ├── street_view_location_request.dart │ │ ├── street_view_pano_request.dart │ │ ├── street_view_panorama_data.dart │ │ ├── street_view_preference.dart │ │ ├── street_view_response.dart │ │ ├── street_view_service.dart │ │ ├── street_view_source.dart │ │ └── street_view_status.dart │ ├── top_level.dart │ ├── top_level │ │ └── maps.dart │ ├── visualization.dart │ ├── visualization │ │ ├── heatmap_layer.dart │ │ ├── heatmap_layer_options.dart │ │ └── weighted_location.dart │ ├── webgl.dart │ └── webgl │ │ ├── camera_params.dart │ │ ├── coordinate_transformer.dart │ │ ├── web_gldraw_options.dart │ │ ├── web_gloverlay_view.dart │ │ └── web_glstate_options.dart │ └── js │ ├── date.dart │ ├── error.dart │ └── iterable.dart ├── pubspec.yaml └── tool ├── generate_lib.dart └── types.dart /.gitignore: -------------------------------------------------------------------------------- 1 | packages 2 | .packages 3 | pubspec.lock 4 | .dart_tool/ 5 | .pub/ 6 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart 2 | jobs: 3 | include: 4 | - stage: run tests 5 | dart: stable 6 | script: 7 | - pub get 8 | - dartfmt -n --set-exit-if-changed . 9 | # TODO re-enable --fatal-lints once https://github.com/dart-lang/sdk/issues/25551 is fixed 10 | # - dartanalyzer --fatal-warnings --fatal-hints --fatal-lints . 11 | - dartanalyzer --fatal-warnings --fatal-hints --no-lints . 12 | # - pub run test 13 | -------------------------------------------------------------------------------- /README-dev.md: -------------------------------------------------------------------------------- 1 | # Dart Google Maps - development information 2 | 3 | ## Build 4 | 5 | Most of the lib is generated from the [online documentation](https://developers.google.com/maps/documentation/javascript/reference). 6 | 7 | ``` 8 | dart tool/generate_lib.dart 9 | ``` -------------------------------------------------------------------------------- /analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:lints/recommended.yaml 2 | analyzer: 3 | errors: 4 | unused_shown_name: ignore 5 | constant_identifier_names: ignore 6 | non_constant_identifier_names: ignore 7 | unnecessary_getters_setters: ignore 8 | file_names: ignore 9 | camel_case_types: ignore 10 | library_private_types_in_public_api: ignore 11 | exclude: 12 | # - example/** 13 | - '**/*.g.dart' 14 | -------------------------------------------------------------------------------- /example/aerial-rotation/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Rotating 45° imagery 7 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /example/aerial-rotation/page.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | import 'package:google_maps/google_maps.dart' hide Duration; 3 | import 'package:web/web.dart'; 4 | 5 | late Map map; 6 | 7 | void main() { 8 | final mapOptions = MapOptions() 9 | ..center = LatLng(45.518970, -122.672899) 10 | ..zoom = 18 11 | ..mapTypeId = MapTypeId.SATELLITE 12 | ..heading = 90 13 | ..tilt = 45; 14 | map = Map(document.getElementById('map-canvas') as HTMLElement, mapOptions) 15 | ..tilt = 45; 16 | 17 | document.getElementById('autoRotate')!.onClick.listen(autoRotate); 18 | } 19 | 20 | void rotate90(_) { 21 | final heading = map.isHeadingDefined() ? map.heading : 0; 22 | map.heading = heading + 90; 23 | } 24 | 25 | void autoRotate(_) { 26 | // Determine if we're showing aerial imagery 27 | if (map.tilt != 0) { 28 | Timer.periodic(const Duration(seconds: 3), rotate90); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /example/aerial-simple/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 45° imagery 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/aerial-simple/page.dart: -------------------------------------------------------------------------------- 1 | import 'package:google_maps/google_maps.dart'; 2 | import 'package:web/web.dart'; 3 | 4 | void main() { 5 | final mapOptions = MapOptions() 6 | ..center = LatLng(36.964645, -122.01523) 7 | ..zoom = 18 8 | ..mapTypeId = MapTypeId.SATELLITE; 9 | Map(document.getElementById('map-canvas') as HTMLElement, mapOptions).tilt = 10 | 45; 11 | } 12 | -------------------------------------------------------------------------------- /example/circle-simple/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Circles 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/control-bounds-restriction/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Map Bounds Restriction 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/control-bounds-restriction/page.dart: -------------------------------------------------------------------------------- 1 | import 'package:google_maps/google_maps.dart'; 2 | import 'package:web/web.dart'; 3 | 4 | final newZealandBounds = LatLngBounds( 5 | LatLng(-47.35, 166.28), 6 | LatLng(-34.36, -175.81), 7 | ); 8 | final auckland = LatLng(-37.06, 174.58); 9 | 10 | void main() { 11 | Map( 12 | document.getElementById('map') as HTMLElement, 13 | MapOptions() 14 | ..center = auckland 15 | ..restriction = (MapRestriction() 16 | ..latLngBounds = newZealandBounds 17 | ..strictBounds = false) 18 | ..zoom = 7, 19 | ); 20 | } 21 | -------------------------------------------------------------------------------- /example/control-custom/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Custom controls 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/control-default/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Default Controls 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/control-default/page.dart: -------------------------------------------------------------------------------- 1 | import 'package:google_maps/google_maps.dart'; 2 | import 'package:web/web.dart'; 3 | 4 | void main() { 5 | Map( 6 | document.getElementById('map') as HTMLElement, 7 | MapOptions() 8 | ..center = LatLng(-34.397, 150.644) 9 | ..zoom = 8, 10 | ); 11 | } 12 | -------------------------------------------------------------------------------- /example/control-disableUI/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Disabling the default UI 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/control-disableUI/page.dart: -------------------------------------------------------------------------------- 1 | import 'package:google_maps/google_maps.dart'; 2 | import 'package:web/web.dart'; 3 | 4 | void main() { 5 | Map( 6 | document.getElementById('map') as HTMLElement, 7 | MapOptions() 8 | ..zoom = 4 9 | ..center = LatLng(-33, 151) 10 | ..disableDefaultUI = true, 11 | ); 12 | } 13 | -------------------------------------------------------------------------------- /example/control-options/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Control options 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/control-options/page.dart: -------------------------------------------------------------------------------- 1 | import 'package:google_maps/google_maps.dart'; 2 | import 'package:web/web.dart'; 3 | 4 | void main() { 5 | Map( 6 | document.getElementById('map') as HTMLElement, 7 | MapOptions() 8 | ..zoom = 4 9 | ..center = LatLng(-33, 151) 10 | ..mapTypeControl = true 11 | ..mapTypeControlOptions = (MapTypeControlOptions() 12 | ..style = MapTypeControlStyle.DROPDOWN_MENU 13 | ..mapTypeIds = [MapTypeId.ROADMAP, MapTypeId.TERRAIN]), 14 | ); 15 | } 16 | -------------------------------------------------------------------------------- /example/control-positioning/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Control positioning 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/control-positioning/page.dart: -------------------------------------------------------------------------------- 1 | import 'package:google_maps/google_maps.dart'; 2 | 3 | import 'package:web/web.dart'; 4 | 5 | void main() { 6 | Map( 7 | document.getElementById('map') as HTMLElement, 8 | MapOptions() 9 | ..zoom = 12 10 | ..center = LatLng(-28.643387, 153.612224) 11 | ..mapTypeControl = true 12 | ..mapTypeControlOptions = (MapTypeControlOptions() 13 | ..style = MapTypeControlStyle.HORIZONTAL_BAR 14 | ..position = ControlPosition.TOP_CENTER) 15 | ..zoomControl = true 16 | ..zoomControlOptions = 17 | (ZoomControlOptions()..position = ControlPosition.LEFT_CENTER) 18 | ..scaleControl = true 19 | ..streetViewControl = true 20 | ..streetViewControlOptions = 21 | (StreetViewControlOptions()..position = ControlPosition.LEFT_TOP) 22 | ..fullscreenControl = true, 23 | ); 24 | } 25 | -------------------------------------------------------------------------------- /example/control-simple/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Adding controls to the map 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/control-simple/page.dart: -------------------------------------------------------------------------------- 1 | import 'package:google_maps/google_maps.dart'; 2 | import 'package:web/web.dart'; 3 | 4 | void main() { 5 | Map( 6 | document.getElementById('map') as HTMLElement, 7 | MapOptions() 8 | ..zoom = 4 9 | ..center = LatLng(-33, 151) 10 | ..zoomControl = false 11 | ..scaleControl = true, 12 | ); 13 | } 14 | -------------------------------------------------------------------------------- /example/drawing-tools/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Drawing tools 5 | 6 | 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/elevation-paths/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Showing elevation along a path 7 | 14 | 15 | 16 |
17 |
18 |
19 |
20 | 21 | 22 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /example/elevation-simple/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Elevation service 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/event-arguments/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Accessing arguments in UI events 5 | 6 | 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/event-arguments/page.dart: -------------------------------------------------------------------------------- 1 | import 'package:google_maps/google_maps.dart'; 2 | import 'package:web/web.dart'; 3 | 4 | void main() { 5 | final map = Map( 6 | document.getElementById('map') as HTMLElement, 7 | MapOptions() 8 | ..zoom = 4 9 | ..center = LatLng(-25.363882, 131.044922), 10 | ); 11 | map.onClick.listen((e) { 12 | placeMarkerAndPanTo(e.latLng!, map); 13 | }); 14 | } 15 | 16 | void placeMarkerAndPanTo(LatLng position, Map map) { 17 | Marker(MarkerOptions() 18 | ..position = position 19 | ..map = map); 20 | 21 | map.panTo(position); 22 | } 23 | -------------------------------------------------------------------------------- /example/event-click-latlng/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Event Click LatLng 5 | 6 | 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/event-closure/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Using closures in event listeners 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/event-domListener/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Listening to DOM events 5 | 6 | 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /example/event-domListener/page.dart: -------------------------------------------------------------------------------- 1 | import 'dart:js_interop'; 2 | 3 | import 'package:google_maps/google_maps.dart'; 4 | import 'package:web/web.dart' hide Event; 5 | 6 | void main() { 7 | final mapDiv = document.getElementById('map') as HTMLElement; 8 | Map( 9 | mapDiv, 10 | MapOptions() 11 | ..zoom = 8 12 | ..center = LatLng(-34.397, 150.644), 13 | ); 14 | 15 | // We add a DOM event here to show an alert if the DIV containing the 16 | // map is clicked. 17 | event.addDomListener( 18 | mapDiv, 19 | 'click', 20 | (MapMouseEventOrIconMouseEvent e) { 21 | window.alert('DIV clicked'); 22 | }.toJS, 23 | ); 24 | } 25 | -------------------------------------------------------------------------------- /example/event-properties/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Getting properties with event handlers 5 | 6 | 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /example/event-properties/page.dart: -------------------------------------------------------------------------------- 1 | import 'dart:js_interop'; 2 | 3 | import 'package:google_maps/google_maps.dart'; 4 | import 'package:web/web.dart'; 5 | 6 | void main() { 7 | final originalMapCenter = LatLng(-25.363882, 131.044922); 8 | final map = Map( 9 | document.getElementById('map') as HTMLElement, 10 | MapOptions() 11 | ..zoom = 4 12 | ..center = originalMapCenter, 13 | ); 14 | 15 | final infowindow = InfoWindow(InfoWindowOptions() 16 | ..content = 'Change the zoom level'.toJS 17 | ..position = originalMapCenter) 18 | ..open(map); 19 | 20 | map.onZoomChanged.listen((_) { 21 | infowindow.content = 'Zoom: ${map.zoom}'.toJS; 22 | }); 23 | } 24 | -------------------------------------------------------------------------------- /example/event-simple copy/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Simple click event 5 | 6 | 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/event-simple copy/page.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:google_maps/google_maps.dart' hide Duration; 4 | import 'package:web/web.dart'; 5 | 6 | void main() { 7 | final myLatLng = LatLng(-25.363, 131.044); 8 | final map = Map( 9 | document.getElementById('map') as HTMLElement, 10 | MapOptions() 11 | ..zoom = 4 12 | ..center = myLatLng, 13 | ); 14 | 15 | final marker = Marker(MarkerOptions() 16 | ..position = myLatLng 17 | ..map = map 18 | ..title = 'Click to zoom'); 19 | 20 | map.onCenterChanged.listen((_) { 21 | // 3 seconds after the center of the map has changed, pan back to the marker. 22 | Timer(const Duration(seconds: 3), () { 23 | map.panTo(marker.position!); 24 | }); 25 | }); 26 | 27 | marker.onClick.listen((e) { 28 | map 29 | ..zoom = 8 30 | ..center = marker.position!; 31 | }); 32 | } 33 | -------------------------------------------------------------------------------- /example/event-simple/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Simple click event 5 | 6 | 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/event-simple/page.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | import 'package:google_maps/google_maps.dart' hide Duration; 3 | import 'package:web/web.dart'; 4 | 5 | void main() { 6 | final myLatLng = LatLng(-25.363, 131.044); 7 | final map = Map( 8 | document.getElementById('map') as HTMLElement, 9 | MapOptions() 10 | ..zoom = 4 11 | ..center = myLatLng, 12 | ); 13 | 14 | final marker = Marker(MarkerOptions() 15 | ..position = myLatLng 16 | ..map = map 17 | ..title = 'Click to zoom'); 18 | 19 | map.onCenterChanged.listen((_) { 20 | // 3 seconds after the center of the map has changed, pan back to the marker. 21 | Timer(const Duration(seconds: 3), () { 22 | map.panTo(marker.position!); 23 | }); 24 | }); 25 | 26 | marker.onClick.listen((e) { 27 | map 28 | ..zoom = 8 29 | ..center = marker.position!; 30 | }); 31 | } 32 | -------------------------------------------------------------------------------- /example/geocoding-region-es/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Region code biasing (ES) 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/geocoding-region-es/page.dart: -------------------------------------------------------------------------------- 1 | import 'package:google_maps/google_maps.dart'; 2 | import 'package:google_maps/google_maps_geocoding.dart'; 3 | import 'package:web/web.dart'; 4 | 5 | late Geocoder geocoder; 6 | late Map map; 7 | const query = 'Toledo'; 8 | 9 | void main() { 10 | geocoder = Geocoder(); 11 | final mapOptions = MapOptions()..zoom = 8; 12 | map = Map(document.getElementById('map-canvas') as HTMLElement, mapOptions); 13 | codeAddress(); 14 | } 15 | 16 | void codeAddress() async { 17 | final response = await geocoder.geocode(GeocoderRequest()..address = query); 18 | if (response.results.isNotEmpty) { 19 | final geometry = response.results[0].geometry; 20 | map.center = geometry.location; 21 | Marker(MarkerOptions() 22 | ..map = map 23 | ..position = geometry.location); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /example/geocoding-region-us/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Region code biasing (US) 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/geocoding-region-us/page.dart: -------------------------------------------------------------------------------- 1 | import 'package:google_maps/google_maps.dart'; 2 | import 'package:google_maps/google_maps_geocoding.dart'; 3 | import 'package:web/web.dart'; 4 | 5 | late Geocoder geocoder; 6 | late Map map; 7 | const query = 'Toledo'; 8 | 9 | void main() { 10 | geocoder = Geocoder(); 11 | final mapOptions = MapOptions()..zoom = 8; 12 | map = Map(document.getElementById('map-canvas') as HTMLElement, mapOptions); 13 | codeAddress(); 14 | } 15 | 16 | void codeAddress() async { 17 | final response = await geocoder.geocode(GeocoderRequest()..address = query); 18 | if (response.results.isNotEmpty) { 19 | final geometry = response.results.first.geometry; 20 | map.center = geometry.location; 21 | Marker(MarkerOptions() 22 | ..map = map 23 | ..position = geometry.location); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /example/geometry-encodings/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Encoding methods 5 | 6 | 7 | 14 | 15 | 16 |
17 |
18 |
Encoding:
19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /example/groundoverlay-simple/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Ground Overlays 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/groundoverlay-simple/page.dart: -------------------------------------------------------------------------------- 1 | import 'package:google_maps/google_maps.dart'; 2 | import 'package:web/web.dart'; 3 | 4 | void main() { 5 | final newark = LatLng(40.740, -74.18); 6 | final imageBounds = 7 | LatLngBounds(LatLng(40.712216, -74.22655), LatLng(40.773941, -74.12544)); 8 | 9 | final mapOptions = MapOptions() 10 | ..zoom = 13 11 | ..center = newark; 12 | final map = 13 | Map(document.getElementById('map-canvas') as HTMLElement, mapOptions); 14 | 15 | GroundOverlay('https://www.lib.utexas.edu/maps/historical/newark_nj_1922.jpg', 16 | imageBounds) 17 | .map = map; 18 | } 19 | -------------------------------------------------------------------------------- /example/icon-complex/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Complex icons 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/icon-simple/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Simple icons 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/icon-simple/page.dart: -------------------------------------------------------------------------------- 1 | import 'dart:js_interop'; 2 | 3 | import 'package:google_maps/google_maps.dart'; 4 | import 'package:web/web.dart'; 5 | 6 | void main() { 7 | final mapOptions = MapOptions() 8 | ..zoom = 4 9 | ..center = LatLng(-33, 151); 10 | final map = 11 | Map(document.getElementById('map-canvas') as HTMLElement, mapOptions); 12 | 13 | const image = 14 | 'https://developers.google.com/maps/documentation/javascript/examples/full/images/beachflag.png'; 15 | final myLatLng = LatLng(-33.890542, 151.274856); 16 | Marker(MarkerOptions() 17 | ..position = myLatLng 18 | ..map = map 19 | ..icon = image.toJS); 20 | } 21 | -------------------------------------------------------------------------------- /example/infowindow-simple-max/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Info window with maxWidth 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/infowindow-simple/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Info windows 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/interaction-cooperative/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Cooperative Gesture Handling 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/interaction-cooperative/page.dart: -------------------------------------------------------------------------------- 1 | import 'package:google_maps/google_maps.dart'; 2 | import 'package:web/web.dart'; 3 | 4 | void main() { 5 | Map( 6 | document.getElementById('map') as HTMLElement, 7 | MapOptions() 8 | ..zoom = 4 9 | ..center = LatLng(-25.363, 131.044) 10 | ..gestureHandling = 'cooperative', 11 | ); 12 | } 13 | -------------------------------------------------------------------------------- /example/layer-bicycling/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Bicycling layer 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/layer-bicycling/page.dart: -------------------------------------------------------------------------------- 1 | import 'package:google_maps/google_maps.dart'; 2 | import 'package:web/web.dart'; 3 | 4 | void main() { 5 | final myLatlng = LatLng(42.3726399, -71.1096528); 6 | final mapOptions = MapOptions() 7 | ..zoom = 14 8 | ..center = myLatlng; 9 | final map = 10 | Map(document.getElementById('map-canvas') as HTMLElement, mapOptions); 11 | 12 | BicyclingLayer().map = map; 13 | } 14 | -------------------------------------------------------------------------------- /example/layer-data-dynamic/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Data Layer: Dynamic Styling 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/layer-data-event/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Data Layer: Event Handling 7 | 23 | 24 | 25 |
26 |
?
27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /example/layer-data-event/page.dart: -------------------------------------------------------------------------------- 1 | import 'dart:js_interop'; 2 | 3 | import 'package:google_maps/google_maps.dart' hide event; 4 | import 'package:web/web.dart'; 5 | 6 | void main() { 7 | final map = Map( 8 | document.getElementById('map-canvas') as HTMLElement, 9 | MapOptions() 10 | ..zoom = 4 11 | ..center = LatLng(-28, 137.883)); 12 | 13 | map.data 14 | .loadGeoJson('https://storage.googleapis.com/maps-devrel/google.json'); 15 | 16 | // Add some style. 17 | map.data.style = ((DataFeature feature) => DataStyleOptions() 18 | ..fillColor = (feature.getProperty('color') as JSString).toDart 19 | ..strokeWeight = 1).toJS; 20 | 21 | // Set mouseover event for each feature. 22 | map.data.onMouseover.listen((event) { 23 | document.getElementById('info-box')!.textContent = 24 | (event.feature.getProperty('letter') as JSString).toDart; 25 | }); 26 | } 27 | -------------------------------------------------------------------------------- /example/layer-data-quakes/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Data Layer: Quakes 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/layer-data-simple/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Data Layer: Simple 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/layer-data-simple/page.dart: -------------------------------------------------------------------------------- 1 | import 'package:google_maps/google_maps.dart'; 2 | import 'package:web/web.dart'; 3 | 4 | void main() { 5 | final map = Map( 6 | document.getElementById('map-canvas') as HTMLElement, 7 | MapOptions() 8 | ..zoom = 4 9 | ..center = LatLng(-28, 137.883)); 10 | 11 | map.data 12 | .loadGeoJson('https://storage.googleapis.com/maps-devrel/google.json'); 13 | } 14 | -------------------------------------------------------------------------------- /example/layer-data-style/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Data Layer: Styling 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/layer-data-style/page.dart: -------------------------------------------------------------------------------- 1 | import 'package:google_maps/google_maps.dart'; 2 | import 'package:web/web.dart'; 3 | 4 | void main() { 5 | final map = Map( 6 | document.getElementById('map-canvas') as HTMLElement, 7 | MapOptions() 8 | ..zoom = 4 9 | ..center = LatLng(-28, 137.883)); 10 | 11 | map.data 12 | .loadGeoJson('https://storage.googleapis.com/maps-devrel/google.json'); 13 | 14 | // Set the stroke width, and fill color for each polygon 15 | final featureStyle = DataStyleOptions() 16 | ..fillColor = 'green' 17 | ..strokeWeight = 1; 18 | map.data.style = featureStyle; 19 | } 20 | -------------------------------------------------------------------------------- /example/layer-georss/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | GeoRSS Layers 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/layer-georss/page.dart: -------------------------------------------------------------------------------- 1 | import 'package:google_maps/google_maps.dart'; 2 | import 'package:web/web.dart'; 3 | 4 | void main() { 5 | final myLatlng = LatLng(49.496675, -102.65625); 6 | final mapOptions = MapOptions() 7 | ..zoom = 4 8 | ..center = myLatlng; 9 | final map = 10 | Map(document.getElementById('map-canvas') as HTMLElement, mapOptions); 11 | 12 | KmlLayer() 13 | ..url = 14 | 'http://api.flickr.com/services/feeds/geo/?g=322338@N20&lang=en-us&format=feed-georss' 15 | ..map = map; 16 | } 17 | -------------------------------------------------------------------------------- /example/layer-kml-features/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | KML feature details 7 | 14 | 15 | 16 |
17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /example/layer-kml-features/page.dart: -------------------------------------------------------------------------------- 1 | import 'package:google_maps/google_maps.dart'; 2 | import 'package:web/web.dart'; 3 | 4 | void main() { 5 | final myLatlng = LatLng(37.06, -95.68); 6 | final mapOptions = MapOptions() 7 | ..zoom = 12 8 | ..center = myLatlng; 9 | final map = 10 | Map(document.getElementById('map-canvas') as HTMLElement, mapOptions); 11 | 12 | final kmlLayer = KmlLayer(KmlLayerOptions() 13 | ..url = 14 | 'http://googlemaps.github.io/kml-samples/kml/Placemark/placemark.kml' 15 | ..suppressInfoWindows = true 16 | ..map = map); 17 | 18 | kmlLayer.onClick.listen((e) { 19 | final text = e.featureData.description; 20 | showInContentWindow(text); 21 | }); 22 | } 23 | 24 | void showInContentWindow(String text) { 25 | document.getElementById('content-window')!.textContent = text; 26 | } 27 | -------------------------------------------------------------------------------- /example/layer-kml/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | KML Layers 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/layer-kml/page.dart: -------------------------------------------------------------------------------- 1 | import 'package:google_maps/google_maps.dart'; 2 | import 'package:web/web.dart'; 3 | 4 | void main() { 5 | final chicago = LatLng(41.875696, -87.624207); 6 | final mapOptions = MapOptions() 7 | ..zoom = 11 8 | ..center = chicago; 9 | final map = 10 | Map(document.getElementById('map-canvas') as HTMLElement, mapOptions); 11 | 12 | KmlLayer() 13 | ..url = 'http://googlearchive.github.io/js-v2-samples/ggeoxml/cta.kml' 14 | ..map = map; 15 | } 16 | -------------------------------------------------------------------------------- /example/layer-traffic/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Traffic layer 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/layer-traffic/page.dart: -------------------------------------------------------------------------------- 1 | import 'package:google_maps/google_maps.dart'; 2 | import 'package:web/web.dart'; 3 | 4 | void main() { 5 | final myLatlng = LatLng(34.04924594193164, -118.24104309082031); 6 | final mapOptions = MapOptions() 7 | ..zoom = 13 8 | ..center = myLatlng; 9 | final map = 10 | Map(document.getElementById('map-canvas') as HTMLElement, mapOptions); 11 | 12 | TrafficLayer().map = map; 13 | } 14 | -------------------------------------------------------------------------------- /example/layer-transit/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Transit layer 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/layer-transit/page.dart: -------------------------------------------------------------------------------- 1 | import 'package:google_maps/google_maps.dart'; 2 | import 'package:web/web.dart'; 3 | 4 | void main() { 5 | final myLatlng = LatLng(51.501904, -0.115871); 6 | final mapOptions = MapOptions() 7 | ..zoom = 13 8 | ..center = myLatlng; 9 | final map = 10 | Map(document.getElementById('map-canvas') as HTMLElement, mapOptions); 11 | 12 | TransitLayer().map = map; 13 | } 14 | -------------------------------------------------------------------------------- /example/map-coordinates/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Showing pixel and tile coordinates 5 | 6 | 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/map-language/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Localizing the Map 5 | 6 | 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/map-language/page.dart: -------------------------------------------------------------------------------- 1 | import 'package:google_maps/google_maps.dart'; 2 | import 'package:web/web.dart'; 3 | 4 | void main() { 5 | Map( 6 | document.getElementById('map') as HTMLElement, 7 | MapOptions() 8 | ..zoom = 8 9 | ..center = LatLng(35.717, 139.731), 10 | ); 11 | } 12 | -------------------------------------------------------------------------------- /example/map-projection-simple/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Custom map projections 6 | 19 | 20 | 21 |
22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /example/map-rtl/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Right-to-Left Languages 5 | 6 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /example/map-rtl/page.dart: -------------------------------------------------------------------------------- 1 | import 'dart:js_interop'; 2 | 3 | import 'package:google_maps/google_maps.dart'; 4 | import 'package:web/web.dart'; 5 | 6 | void main() { 7 | final cairo = LatLng(30.064742, 31.249509); 8 | final map = Map( 9 | document.getElementById('map') as HTMLElement, 10 | MapOptions() 11 | ..scaleControl = true 12 | ..center = cairo 13 | ..zoom = 10, 14 | ); 15 | 16 | final infowindow = InfoWindow()..content = 'القاهرة'.toJS; 17 | final marker = Marker(MarkerOptions() 18 | ..map = map 19 | ..position = cairo); 20 | marker.onClick.listen((e) { 21 | infowindow.open(map, marker); 22 | }); 23 | } 24 | -------------------------------------------------------------------------------- /example/map-simple-async/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Asynchronous Loading 5 | 6 | 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /example/map-simple-async/page.dart: -------------------------------------------------------------------------------- 1 | @JS() 2 | library; 3 | 4 | import 'dart:js_interop'; 5 | import 'dart:js_interop_unsafe'; 6 | 7 | import 'package:google_maps/google_maps.dart'; 8 | import 'package:web/web.dart'; 9 | 10 | void initialize() { 11 | Map( 12 | document.getElementById('map') as HTMLElement, 13 | MapOptions() 14 | ..center = LatLng(-34.397, 150.644) 15 | ..zoom = 8, 16 | ); 17 | } 18 | 19 | void main() { 20 | globalContext.setProperty('init'.toJS, initialize.toJS); 21 | 22 | final script = (document.createElement('script') as HTMLScriptElement) 23 | ..type = 'text/javascript' 24 | ..src = 25 | 'https://maps.googleapis.com/maps/api/js?key=__API_KEY__&callback=init'; 26 | document.body!.appendChild(script); 27 | } 28 | -------------------------------------------------------------------------------- /example/map-simple/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Simple Map 5 | 6 | 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/map-simple/page.dart: -------------------------------------------------------------------------------- 1 | import 'package:google_maps/google_maps.dart'; 2 | import 'package:web/web.dart'; 3 | 4 | void main() { 5 | Map( 6 | document.getElementById('map') as HTMLElement, 7 | MapOptions() 8 | ..center = LatLng(-34.397, 150.644) 9 | ..zoom = 8, 10 | ); 11 | } 12 | -------------------------------------------------------------------------------- /example/maptype-base/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Basic map types 5 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /example/maptype-image-overlay/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Overlaying an image map type 5 | 6 | 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/maptype-image/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Image map types 5 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /example/maptype-overlay/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Overlay map types 5 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /example/maptype-styled-complex/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Complex styled maps 5 | 6 | 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/maptype-styled-simple/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Simple styled maps 5 | 6 | 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/marker-animations-iteration/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Marker animations with setTimeout() 6 | 23 | 24 | 25 |
26 | 27 |
28 |
29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /example/marker-animations/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Marker Animations 6 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /example/marker-animations/page.dart: -------------------------------------------------------------------------------- 1 | import 'package:google_maps/google_maps.dart'; 2 | import 'package:web/web.dart' hide Animation; 3 | 4 | final LatLng stockholm = LatLng(59.32522, 18.07002); 5 | final LatLng parliament = LatLng(59.327383, 18.06747); 6 | late Marker marker; 7 | late Map map; 8 | 9 | void main() { 10 | final mapOptions = MapOptions() 11 | ..zoom = 13 12 | ..center = stockholm; 13 | map = Map(document.getElementById('map-canvas') as HTMLElement, mapOptions); 14 | 15 | marker = Marker(MarkerOptions() 16 | ..map = map 17 | ..draggable = true 18 | ..animation = Animation.DROP 19 | ..position = parliament); 20 | marker.onClick.listen((e) => toggleBounce()); 21 | } 22 | 23 | void toggleBounce() { 24 | if (marker.animation != null) { 25 | marker.animation = null; 26 | } else { 27 | marker.animation = Animation.BOUNCE; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /example/marker-simple/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Simple markers 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/marker-simple/page.dart: -------------------------------------------------------------------------------- 1 | import 'package:google_maps/google_maps.dart'; 2 | import 'package:web/web.dart'; 3 | 4 | void main() { 5 | final myLatlng = LatLng(-25.363882, 131.044922); 6 | final mapOptions = MapOptions() 7 | ..zoom = 4 8 | ..center = myLatlng; 9 | final map = 10 | Map(document.getElementById('map-canvas') as HTMLElement, mapOptions); 11 | 12 | Marker(MarkerOptions() 13 | ..position = myLatlng 14 | ..map = map 15 | ..title = 'Hello World!'); 16 | } 17 | -------------------------------------------------------------------------------- /example/marker-symbol-custom/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Custom Marker Symbols 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/marker-symbol-custom/page.dart: -------------------------------------------------------------------------------- 1 | import 'dart:js_interop'; 2 | 3 | import 'package:google_maps/google_maps.dart'; 4 | import 'package:web/web.dart'; 5 | 6 | void main() { 7 | final mapOptions = MapOptions() 8 | ..zoom = 4 9 | ..center = LatLng(-25.363882, 131.044922); 10 | final map = 11 | Map(document.getElementById('map-canvas') as HTMLElement, mapOptions); 12 | 13 | final goldStar = Symbol() 14 | ..path = 15 | 'M 125,5 155,90 245,90 175,145 200,230 125,180 50,230 75,145 5,90 95,90 z' 16 | .toJS 17 | ..fillColor = 'yellow' 18 | ..fillOpacity = 0.8 19 | ..scale = 1 20 | ..strokeColor = 'gold' 21 | ..strokeWeight = 14; 22 | 23 | Marker(MarkerOptions() 24 | ..position = map.center 25 | ..icon = goldStar 26 | ..map = map); 27 | } 28 | -------------------------------------------------------------------------------- /example/marker-symbol-predefined/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Predefined Marker Symbols 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/marker-symbol-predefined/page.dart: -------------------------------------------------------------------------------- 1 | import 'package:google_maps/google_maps.dart'; 2 | import 'package:web/web.dart'; 3 | 4 | void main() { 5 | final mapOptions = MapOptions() 6 | ..zoom = 4 7 | ..center = LatLng(-25.363882, 131.044922); 8 | final map = 9 | Map(document.getElementById('map-canvas') as HTMLElement, mapOptions); 10 | 11 | Marker(MarkerOptions() 12 | ..position = map.center 13 | ..icon = (Symbol() 14 | ..path = SymbolPath.CIRCLE 15 | ..scale = 10) 16 | ..draggable = true 17 | ..map = map); 18 | } 19 | -------------------------------------------------------------------------------- /example/maxzoom-simple/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Maximum Zoom imagery service 5 | 6 | 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/overlay-simple/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Adding a Custom Overlay 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/overlay-symbol-animate/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Animating Symbols 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/overlay-symbol-arrow/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Arrows (Symbols) 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/overlay-symbol-arrow/page.dart: -------------------------------------------------------------------------------- 1 | import 'dart:js_interop'; 2 | 3 | import 'package:google_maps/google_maps.dart'; 4 | import 'package:web/web.dart'; 5 | 6 | late Polyline line; 7 | 8 | void main() { 9 | final mapOptions = MapOptions() 10 | ..zoom = 6 11 | ..center = LatLng(20.291, 153.027) 12 | ..mapTypeId = MapTypeId.TERRAIN; 13 | final map = 14 | Map(document.getElementById('map-canvas') as HTMLElement, mapOptions); 15 | 16 | final lineSymbol = Symbol()..path = SymbolPath.FORWARD_CLOSED_ARROW; 17 | 18 | final lineCoordinates = [ 19 | LatLng(22.291, 153.027), 20 | LatLng(18.291, 153.027) 21 | ]; 22 | 23 | line = Polyline(PolylineOptions() 24 | ..path = lineCoordinates.toJS 25 | ..icons = [ 26 | IconSequence() 27 | ..icon = lineSymbol 28 | ..offset = '100%' 29 | ] 30 | ..map = map); 31 | } 32 | -------------------------------------------------------------------------------- /example/overlay-symbol-custom/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Custom Symbols 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/overlay-symbol-dashed/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Dashed Lines (Symbols) 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/overlay-symbol-dashed/page.dart: -------------------------------------------------------------------------------- 1 | import 'dart:js_interop'; 2 | 3 | import 'package:google_maps/google_maps.dart'; 4 | import 'package:web/web.dart'; 5 | 6 | void main() { 7 | final mapOptions = MapOptions() 8 | ..zoom = 6 9 | ..center = LatLng(20.291, 153.027) 10 | ..mapTypeId = MapTypeId.TERRAIN; 11 | final map = 12 | Map(document.getElementById('map-canvas') as HTMLElement, mapOptions); 13 | 14 | final lineSymbol = Symbol() 15 | ..path = 'M 0,-1 0,1'.toJS 16 | ..strokeOpacity = 1 17 | ..scale = 4; 18 | 19 | final lineCoordinates = [LatLng(22.291, 153.027), LatLng(18.291, 153.027)]; 20 | 21 | Polyline(PolylineOptions() 22 | ..path = lineCoordinates.toJS 23 | ..strokeOpacity = 0 24 | ..icons = [ 25 | IconSequence() 26 | ..icon = lineSymbol 27 | ..offset = '0' 28 | ..repeat = '20px' 29 | ] 30 | ..map = map); 31 | } 32 | -------------------------------------------------------------------------------- /example/place-details/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Place details 5 | 6 | 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/place-search/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Place searches 5 | 6 | 7 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/places-queryprediction/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Retrieving Autocomplete Predictions 5 | 6 | 7 |

Query suggestions for 'pizza near':

8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /example/places-queryprediction/page.dart: -------------------------------------------------------------------------------- 1 | import 'dart:js_interop'; 2 | 3 | import 'package:google_maps/google_maps.dart'; 4 | import 'package:google_maps/google_maps_places.dart'; 5 | import 'package:web/web.dart'; 6 | 7 | late Map map; 8 | late InfoWindow infowindow; 9 | 10 | void main() { 11 | AutocompleteService().getQueryPredictions( 12 | QueryAutocompletionRequest()..input = 'pizza near', 13 | callback.toJS, 14 | ); 15 | } 16 | 17 | void callback( 18 | JSArray? predictions, 19 | PlacesServiceStatus? status, 20 | ) { 21 | if (status != PlacesServiceStatus.OK) { 22 | window.alert('$status'); 23 | return; 24 | } 25 | 26 | final results = document.getElementById('results') as HTMLUListElement; 27 | 28 | for (final prediction in predictions!.toDart) { 29 | results.innerHTML = 30 | '${results.innerHTML}
  • ${prediction!.description}
  • '.toJS; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /example/poly-containsLocation/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Polygon arrays 7 | 14 | 15 | 16 |
    17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/polygon-arrays/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Polygon Arrays 7 | 14 | 15 | 16 |
    17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/polygon-autoclose/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Polygon Auto-completion 7 | 14 | 15 | 16 |
    17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/polygon-autoclose/page.dart: -------------------------------------------------------------------------------- 1 | import 'dart:js_interop'; 2 | 3 | import 'package:google_maps/google_maps.dart'; 4 | import 'package:web/web.dart'; 5 | 6 | void main() { 7 | final mapOptions = MapOptions() 8 | ..zoom = 5 9 | ..center = LatLng(24.886436490787712, -70.2685546875) 10 | ..mapTypeId = MapTypeId.TERRAIN; 11 | final map = 12 | Map(document.getElementById('map-canvas') as HTMLElement, mapOptions); 13 | 14 | final triangleCoords = [ 15 | LatLng(25.774252, -80.190262), 16 | LatLng(18.466465, -66.118292), 17 | LatLng(32.321384, -64.75737) 18 | ]; 19 | 20 | Polygon(PolygonOptions() 21 | ..paths = triangleCoords.toJS 22 | ..strokeColor = '#FF0000' 23 | ..strokeOpacity = 0.8 24 | ..strokeWeight = 3 25 | ..fillColor = '#FF0000' 26 | ..fillOpacity = 0.35) 27 | .map = map; 28 | } 29 | -------------------------------------------------------------------------------- /example/polygon-draggable/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Draggable Polygons 7 | 14 | 15 | 16 |
    17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/polygon-simple/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Simple Polygon 7 | 14 | 15 | 16 |
    17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/polygon-simple/page.dart: -------------------------------------------------------------------------------- 1 | import 'dart:js_interop'; 2 | 3 | import 'package:google_maps/google_maps.dart'; 4 | import 'package:web/web.dart'; 5 | 6 | void main() { 7 | final mapOptions = MapOptions() 8 | ..zoom = 5 9 | ..center = LatLng(24.886436490787712, -70.2685546875) 10 | ..mapTypeId = MapTypeId.TERRAIN; 11 | final map = 12 | Map(document.getElementById('map-canvas') as HTMLElement, mapOptions); 13 | 14 | final triangleCoords = [ 15 | LatLng(25.774252, -80.190262), 16 | LatLng(18.466465, -66.118292), 17 | LatLng(32.321384, -64.75737), 18 | LatLng(25.774252, -80.190262) 19 | ]; 20 | 21 | Polygon(PolygonOptions() 22 | ..paths = triangleCoords.toJS 23 | ..strokeColor = '#FF0000' 24 | ..strokeOpacity = 0.8 25 | ..strokeWeight = 3 26 | ..fillColor = '#FF0000' 27 | ..fillOpacity = 0.35) 28 | .map = map; 29 | } 30 | -------------------------------------------------------------------------------- /example/polyline-complex/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Complex Polylines 7 | 14 | 15 | 16 |
    17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/polyline-simple/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Simple Polylines 7 | 14 | 15 | 16 |
    17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/polyline-simple/page.dart: -------------------------------------------------------------------------------- 1 | import 'dart:js_interop'; 2 | 3 | import 'package:google_maps/google_maps.dart'; 4 | import 'package:web/web.dart'; 5 | 6 | void main() { 7 | final mapOptions = MapOptions() 8 | ..zoom = 3 9 | ..center = LatLng(0, -180) 10 | ..mapTypeId = MapTypeId.TERRAIN; 11 | final map = 12 | Map(document.getElementById('map-canvas') as HTMLElement, mapOptions); 13 | 14 | final flightPlanCoordinates = [ 15 | LatLng(37.772323, -122.214897), 16 | LatLng(21.291982, -157.821856), 17 | LatLng(-18.142599, 178.431), 18 | LatLng(-27.46758, 153.027892) 19 | ]; 20 | Polyline(PolylineOptions() 21 | ..path = flightPlanCoordinates.toJS 22 | ..geodesic = true 23 | ..strokeColor = '#FF0000' 24 | ..strokeOpacity = 1.0 25 | ..strokeWeight = 2) 26 | .map = map; 27 | } 28 | -------------------------------------------------------------------------------- /example/rectangle-event/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Rectangle Events 7 | 14 | 15 | 16 |
    17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/rectangle-simple/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Rectangles 7 | 14 | 15 | 16 |
    17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/rectangle-simple/page.dart: -------------------------------------------------------------------------------- 1 | import 'package:google_maps/google_maps.dart'; 2 | import 'package:web/web.dart'; 3 | 4 | void main() { 5 | final map = Map( 6 | document.getElementById('map-canvas') as HTMLElement, 7 | MapOptions() 8 | ..zoom = 11 9 | ..center = LatLng(33.678176, -116.242568) 10 | ..mapTypeId = MapTypeId.TERRAIN); 11 | 12 | Rectangle(RectangleOptions() 13 | ..strokeColor = '#FF0000' 14 | ..strokeOpacity = 0.8 15 | ..strokeWeight = 2 16 | ..fillColor = '#FF0000' 17 | ..fillOpacity = 0.35 18 | ..map = map 19 | ..bounds = LatLngBounds( 20 | LatLng(33.671068, -116.25128), 21 | LatLng(33.685282, -116.233942), 22 | )); 23 | } 24 | -------------------------------------------------------------------------------- /example/rectangle-zoom/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Rectangle Zoom 7 | 14 | 15 | 16 |
    17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/rectangle-zoom/page.dart: -------------------------------------------------------------------------------- 1 | import 'package:google_maps/google_maps.dart'; 2 | import 'package:web/web.dart'; 3 | 4 | void main() { 5 | final coachella = LatLng(33.6803003, -116.173894); 6 | final mapOptions = MapOptions() 7 | ..zoom = 11 8 | ..center = coachella 9 | ..mapTypeId = MapTypeId.TERRAIN; 10 | final map = 11 | Map(document.getElementById('map-canvas') as HTMLElement, mapOptions); 12 | 13 | final rectangle = Rectangle(); 14 | 15 | map.onZoomChanged.listen((_) { 16 | final rectOptions = RectangleOptions() 17 | ..strokeColor = '#FF0000' 18 | ..strokeOpacity = 0.8 19 | ..strokeWeight = 2 20 | ..fillColor = '#FF0000' 21 | ..fillOpacity = 0.35 22 | ..map = map 23 | ..bounds = map.bounds; 24 | rectangle.options = rectOptions; 25 | }); 26 | } 27 | -------------------------------------------------------------------------------- /example/streetview-controls/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Street View controls 6 | 13 | 14 | 15 |
    16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /example/streetview-controls/page.dart: -------------------------------------------------------------------------------- 1 | import 'package:google_maps/google_maps.dart'; 2 | import 'package:google_maps/google_maps_streetview.dart'; 3 | import 'package:web/web.dart'; 4 | 5 | void main() { 6 | final fenway = LatLng(42.345573, -71.098326); 7 | 8 | // Note: constructed panorama objects have visible: true 9 | // set by default. 10 | final panoramaOptions = StreetViewPanoramaOptions() 11 | ..position = fenway 12 | ..addressControlOptions = (StreetViewAddressControlOptions() 13 | ..position = ControlPosition.BOTTOM_CENTER) 14 | ..linksControl = false 15 | ..panControl = false 16 | ..enableCloseButton = false; 17 | StreetViewPanorama( 18 | document.getElementById('map-canvas') as HTMLElement, panoramaOptions); 19 | } 20 | -------------------------------------------------------------------------------- /example/streetview-custom-simple/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Custom Street View panoramas 5 | 6 | 13 | 14 | 15 |
    16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /example/streetview-custom-tiles/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Custom Street View panorama tiles 5 | 6 | 13 | 14 | 15 |
    16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /example/streetview-embed/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Street View containers 6 | 13 | 14 | 15 |
    16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /example/streetview-embed/page.dart: -------------------------------------------------------------------------------- 1 | import 'package:google_maps/google_maps.dart'; 2 | import 'package:google_maps/google_maps_streetview.dart'; 3 | import 'package:web/web.dart'; 4 | 5 | void main() { 6 | final bryantPark = LatLng(37.869260, -122.254811); 7 | 8 | final panoramaOptions = StreetViewPanoramaOptions() 9 | ..position = bryantPark 10 | ..pov = (StreetViewPov() 11 | ..heading = 165 12 | ..pitch = 0) 13 | ..zoom = 1; 14 | 15 | StreetViewPanorama( 16 | document.getElementById('map-canvas')! as HTMLElement, 17 | panoramaOptions, 18 | ).visible = true; 19 | } 20 | -------------------------------------------------------------------------------- /example/streetview-overlays/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Overlays within Street View 6 | 23 | 24 | 25 |
    26 | 27 |
    28 |
    29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /example/streetview-service/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Directly accessing Street View data 6 | 13 | 14 | 15 |
    16 |
    17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/streetview-simple/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Street View service 6 | 13 | 14 | 15 |
    16 |
    17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/streetview-simple/page.dart: -------------------------------------------------------------------------------- 1 | import 'package:google_maps/google_maps.dart'; 2 | import 'package:google_maps/google_maps_streetview.dart'; 3 | import 'package:web/web.dart'; 4 | 5 | void main() { 6 | final fenway = LatLng(42.345573, -71.098326); 7 | final mapOptions = MapOptions() 8 | ..center = fenway 9 | ..zoom = 14; 10 | final map = 11 | Map(document.getElementById('map-canvas') as HTMLElement, mapOptions); 12 | final panoramaOptions = StreetViewPanoramaOptions() 13 | ..position = fenway 14 | ..pov = (StreetViewPov() 15 | ..heading = 34 16 | ..pitch = 10); 17 | final panorama = StreetViewPanorama( 18 | document.getElementById('pano') as HTMLElement, panoramaOptions); 19 | map.streetView = panorama; 20 | } 21 | -------------------------------------------------------------------------------- /example/user-editable-shapes/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | User-editable Shapes 5 | 6 | 7 | 14 | 15 | 16 |
    17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/user-editable-shapes/page.dart: -------------------------------------------------------------------------------- 1 | import 'package:google_maps/google_maps.dart'; 2 | import 'package:web/web.dart'; 3 | 4 | void main() { 5 | final mapOptions = MapOptions() 6 | ..center = LatLng(44.5452, -78.5389) 7 | ..zoom = 9; 8 | final map = 9 | Map(document.getElementById('map-canvas') as HTMLElement, mapOptions); 10 | 11 | final bounds = LatLngBounds(LatLng(44.490, -78.649), LatLng(44.599, -78.443)); 12 | 13 | Rectangle(RectangleOptions() 14 | ..bounds = bounds 15 | ..editable = true) 16 | .map = map; 17 | } 18 | -------------------------------------------------------------------------------- /lib/google_maps.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | export 'google_maps_core.dart'; 16 | export 'google_maps_maps.dart'; 17 | export 'google_maps_marker.dart'; 18 | -------------------------------------------------------------------------------- /lib/google_maps_core.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | export 'src/generated/control.dart'; 16 | export 'src/generated/coordinates.dart'; 17 | export 'src/generated/directions.dart'; 18 | export 'src/generated/errors.dart'; 19 | export 'src/generated/event.dart'; 20 | export 'src/generated/map.dart'; 21 | export 'src/generated/marker.dart'; 22 | export 'src/generated/settings.dart'; -------------------------------------------------------------------------------- /lib/google_maps_drawing.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | export 'src/generated/drawing.dart'; -------------------------------------------------------------------------------- /lib/google_maps_elevation.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | export 'src/generated/elevation.dart'; -------------------------------------------------------------------------------- /lib/google_maps_geocoding.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | export 'src/generated/geocoder.dart'; -------------------------------------------------------------------------------- /lib/google_maps_geometry.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | export 'src/generated/geometry.dart'; -------------------------------------------------------------------------------- /lib/google_maps_maps3d.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | export 'src/generated/3d_map.dart'; -------------------------------------------------------------------------------- /lib/google_maps_marker.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | export 'src/generated/advanced_markers.dart'; 16 | export 'src/generated/marker.dart'; -------------------------------------------------------------------------------- /lib/google_maps_places.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | export 'src/generated/autocomplete_data.dart'; 16 | export 'src/generated/place.dart'; 17 | export 'src/generated/places_autocomplete_service.dart'; 18 | export 'src/generated/places_service.dart'; 19 | export 'src/generated/places_widget.dart'; -------------------------------------------------------------------------------- /lib/google_maps_routes.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | export 'src/generated/directions.dart'; 16 | export 'src/generated/distance_matrix.dart'; -------------------------------------------------------------------------------- /lib/google_maps_streetview.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | export 'src/generated/info_window.dart'; 16 | export 'src/generated/overlay_view.dart'; 17 | export 'src/generated/street_view.dart'; 18 | export 'src/generated/street_view_service.dart'; -------------------------------------------------------------------------------- /lib/google_maps_visualization.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | export 'src/generated/visualization.dart'; -------------------------------------------------------------------------------- /lib/src/generated/3d_map/fly_to_animation_options.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../3d_map.dart'; 16 | 17 | extension type FlyToAnimationOptions._(JSObject _) implements JSObject { 18 | external FlyToAnimationOptions({ 19 | CameraOptions endCamera, 20 | num? durationMillis, 21 | }); 22 | external CameraOptions endCamera; 23 | external num? durationMillis; 24 | } 25 | -------------------------------------------------------------------------------- /lib/src/generated/3d_map/location_click_event.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../3d_map.dart'; 16 | 17 | @JS('google.maps.maps3d.LocationClickEvent') 18 | extension type LocationClickEvent._(Event _) implements Event { 19 | external LatLngAltitude? position; 20 | } 21 | -------------------------------------------------------------------------------- /lib/src/generated/3d_map/marker_3_dinteractive_element_options.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../3d_map.dart'; 16 | 17 | extension type Marker3DInteractiveElementOptions._(Marker3DElementOptions _) 18 | implements Marker3DElementOptions {} 19 | -------------------------------------------------------------------------------- /lib/src/generated/3d_map/steady_change_event.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../3d_map.dart'; 16 | 17 | @JS('google.maps.maps3d.SteadyChangeEvent') 18 | extension type SteadyChangeEvent._(Event _) implements Event { 19 | external bool isSteady; 20 | } 21 | -------------------------------------------------------------------------------- /lib/src/generated/advanced_markers/advanced_marker_click_event.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../advanced_markers.dart'; 16 | 17 | @JS('google.maps.marker.AdvancedMarkerClickEvent') 18 | extension type AdvancedMarkerClickEvent._(Event _) implements Event {} 19 | -------------------------------------------------------------------------------- /lib/src/generated/autocomplete_data/autocomplete_session_token.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../autocomplete_data.dart'; 16 | 17 | @JS('google.maps.places.AutocompleteSessionToken') 18 | extension type AutocompleteSessionToken._(JSObject _) implements JSObject { 19 | external AutocompleteSessionToken(); 20 | } 21 | -------------------------------------------------------------------------------- /lib/src/generated/autocomplete_data/string_range.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../autocomplete_data.dart'; 16 | 17 | @JS('google.maps.places.StringRange') 18 | extension type StringRange._(JSObject _) implements JSObject { 19 | external num endOffset; 20 | external num startOffset; 21 | } 22 | -------------------------------------------------------------------------------- /lib/src/generated/control/camera_control_options.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../control.dart'; 16 | 17 | extension type CameraControlOptions._(JSObject _) implements JSObject { 18 | external CameraControlOptions({ 19 | ControlPosition? position, 20 | }); 21 | external ControlPosition? position; 22 | } 23 | -------------------------------------------------------------------------------- /lib/src/generated/control/fullscreen_control_options.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../control.dart'; 16 | 17 | extension type FullscreenControlOptions._(JSObject _) implements JSObject { 18 | external FullscreenControlOptions({ 19 | ControlPosition? position, 20 | }); 21 | external ControlPosition? position; 22 | } 23 | -------------------------------------------------------------------------------- /lib/src/generated/control/motion_tracking_control_options.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../control.dart'; 16 | 17 | extension type MotionTrackingControlOptions._(JSObject _) implements JSObject { 18 | external MotionTrackingControlOptions({ 19 | ControlPosition? position, 20 | }); 21 | external ControlPosition? position; 22 | } 23 | -------------------------------------------------------------------------------- /lib/src/generated/control/pan_control_options.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../control.dart'; 16 | 17 | extension type PanControlOptions._(JSObject _) implements JSObject { 18 | external PanControlOptions({ 19 | ControlPosition? position, 20 | }); 21 | external ControlPosition? position; 22 | } 23 | -------------------------------------------------------------------------------- /lib/src/generated/control/rotate_control_options.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../control.dart'; 16 | 17 | extension type RotateControlOptions._(JSObject _) implements JSObject { 18 | external RotateControlOptions({ 19 | ControlPosition? position, 20 | }); 21 | external ControlPosition? position; 22 | } 23 | -------------------------------------------------------------------------------- /lib/src/generated/control/scale_control_options.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../control.dart'; 16 | 17 | extension type ScaleControlOptions._(JSObject _) implements JSObject { 18 | external ScaleControlOptions({ 19 | ScaleControlStyle? style, 20 | }); 21 | external ScaleControlStyle? style; 22 | } 23 | -------------------------------------------------------------------------------- /lib/src/generated/control/scale_control_style.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../control.dart'; 16 | 17 | @JS('google.maps.ScaleControlStyle') 18 | extension type ScaleControlStyle._(JSAny _) implements JSAny { 19 | external static ScaleControlStyle get DEFAULT; 20 | } 21 | -------------------------------------------------------------------------------- /lib/src/generated/control/zoom_control_options.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../control.dart'; 16 | 17 | extension type ZoomControlOptions._(JSObject _) implements JSObject { 18 | external ZoomControlOptions({ 19 | ControlPosition? position, 20 | }); 21 | external ControlPosition? position; 22 | } 23 | -------------------------------------------------------------------------------- /lib/src/generated/coordinates/circle_literal.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../coordinates.dart'; 16 | 17 | extension type CircleLiteral._(CircleOptions _) implements CircleOptions { 18 | external CircleLiteral({ 19 | LatLngOrLatLngLiteral center, 20 | num radius, 21 | }); 22 | external LatLngOrLatLngLiteral center; 23 | external num radius; 24 | } 25 | -------------------------------------------------------------------------------- /lib/src/generated/coordinates/lat_lng_literal.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../coordinates.dart'; 16 | 17 | extension type LatLngLiteral._(JSObject _) 18 | implements JSObject, LatLngOrLatLngLiteral { 19 | external LatLngLiteral({ 20 | num lat, 21 | num lng, 22 | }); 23 | external num lat; 24 | external num lng; 25 | } 26 | -------------------------------------------------------------------------------- /lib/src/generated/coordinates/orientation_3_dliteral.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../coordinates.dart'; 16 | 17 | extension type Orientation3DLiteral._(JSObject _) implements JSObject { 18 | external Orientation3DLiteral({ 19 | num? heading, 20 | num? roll, 21 | num? tilt, 22 | }); 23 | external num? heading; 24 | external num? roll; 25 | external num? tilt; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/generated/coordinates/vector_3_dliteral.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../coordinates.dart'; 16 | 17 | extension type Vector3DLiteral._(JSObject _) implements JSObject { 18 | external Vector3DLiteral({ 19 | num x, 20 | num y, 21 | num z, 22 | }); 23 | external num x; 24 | external num y; 25 | external num z; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/generated/data/data_add_feature_event.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../data.dart'; 16 | 17 | extension type DataAddFeatureEvent._(JSObject _) implements JSObject { 18 | external DataAddFeatureEvent({ 19 | DataFeature feature, 20 | }); 21 | external DataFeature feature; 22 | } 23 | -------------------------------------------------------------------------------- /lib/src/generated/data/data_geo_json_options.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../data.dart'; 16 | 17 | extension type DataGeoJsonOptions._(JSObject _) implements JSObject { 18 | external DataGeoJsonOptions({ 19 | String? idPropertyName, 20 | }); 21 | external String? idPropertyName; 22 | } 23 | -------------------------------------------------------------------------------- /lib/src/generated/data/data_geometry.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../data.dart'; 16 | 17 | extension type DataGeometry._(JSObject _) implements JSObject { 18 | external void forEachLatLng( 19 | JSFunction /*void Function(LatLng)*/ callback, 20 | ); 21 | @JS('getType') 22 | external String _getType(); 23 | String get type => _getType(); 24 | } 25 | -------------------------------------------------------------------------------- /lib/src/generated/data/data_mouse_event.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../data.dart'; 16 | 17 | extension type DataMouseEvent._(MapMouseEvent _) implements MapMouseEvent { 18 | external DataMouseEvent({ 19 | DataFeature feature, 20 | }); 21 | external DataFeature feature; 22 | } 23 | -------------------------------------------------------------------------------- /lib/src/generated/data/data_point.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../data.dart'; 16 | 17 | @JS('google.maps.Data.Point') 18 | extension type DataPoint._(DataGeometry _) implements DataGeometry { 19 | external DataPoint( 20 | LatLngOrLatLngLiteral latLng, 21 | ); 22 | external LatLng get(); 23 | } 24 | -------------------------------------------------------------------------------- /lib/src/generated/data/data_remove_feature_event.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../data.dart'; 16 | 17 | extension type DataRemoveFeatureEvent._(JSObject _) implements JSObject { 18 | external DataRemoveFeatureEvent({ 19 | DataFeature feature, 20 | }); 21 | external DataFeature feature; 22 | } 23 | -------------------------------------------------------------------------------- /lib/src/generated/data/data_styling_function.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../data.dart'; 16 | 17 | typedef StylingFunction = JSFunction /*DataStyleOptions Function(DataFeature)*/; 18 | -------------------------------------------------------------------------------- /lib/src/generated/data_driven_styling/feature.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../data_driven_styling.dart'; 16 | 17 | extension type Feature._(JSObject _) implements JSObject { 18 | external Feature({ 19 | FeatureType featureType, 20 | }); 21 | external FeatureType featureType; 22 | } 23 | -------------------------------------------------------------------------------- /lib/src/generated/data_driven_styling/feature_style_function.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../data_driven_styling.dart'; 16 | 17 | typedef FeatureStyleFunction 18 | = JSFunction /*FeatureStyleOptions? Function(FeatureStyleFunctionOptions)*/; 19 | -------------------------------------------------------------------------------- /lib/src/generated/data_driven_styling/feature_style_function_options.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../data_driven_styling.dart'; 16 | 17 | extension type FeatureStyleFunctionOptions._(JSObject _) implements JSObject { 18 | external FeatureStyleFunctionOptions({ 19 | Feature feature, 20 | }); 21 | external Feature feature; 22 | } 23 | -------------------------------------------------------------------------------- /lib/src/generated/directions/directions_polyline.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../directions.dart'; 16 | 17 | extension type DirectionsPolyline._(JSObject _) implements JSObject { 18 | external DirectionsPolyline({ 19 | String points, 20 | }); 21 | external String points; 22 | } 23 | -------------------------------------------------------------------------------- /lib/src/generated/directions/directions_travel_mode.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../directions.dart'; 16 | 17 | @JS('google.maps.DirectionsTravelMode') 18 | extension type DirectionsTravelMode._(JSAny _) implements JSAny {} 19 | -------------------------------------------------------------------------------- /lib/src/generated/directions/directions_unit_system.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../directions.dart'; 16 | 17 | @JS('google.maps.DirectionsUnitSystem') 18 | extension type DirectionsUnitSystem._(JSAny _) implements JSAny {} 19 | -------------------------------------------------------------------------------- /lib/src/generated/directions/distance.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../directions.dart'; 16 | 17 | extension type Distance._(JSObject _) implements JSObject { 18 | external Distance({ 19 | String text, 20 | num value, 21 | }); 22 | external String text; 23 | external num value; 24 | } 25 | -------------------------------------------------------------------------------- /lib/src/generated/directions/driving_options.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../directions.dart'; 16 | 17 | extension type DrivingOptions._(JSObject _) implements JSObject { 18 | external DrivingOptions({ 19 | Date departureTime, 20 | TrafficModel? trafficModel, 21 | }); 22 | external Date departureTime; 23 | external TrafficModel? trafficModel; 24 | } 25 | -------------------------------------------------------------------------------- /lib/src/generated/directions/duration.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../directions.dart'; 16 | 17 | extension type Duration._(JSObject _) implements JSObject { 18 | external Duration({ 19 | String text, 20 | num value, 21 | }); 22 | external String text; 23 | external num value; 24 | } 25 | -------------------------------------------------------------------------------- /lib/src/generated/directions/traffic_model.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../directions.dart'; 16 | 17 | @JS('google.maps.TrafficModel') 18 | extension type TrafficModel._(JSAny _) implements JSAny { 19 | external static TrafficModel get BEST_GUESS; 20 | external static TrafficModel get OPTIMISTIC; 21 | external static TrafficModel get PESSIMISTIC; 22 | } 23 | -------------------------------------------------------------------------------- /lib/src/generated/directions/transit_agency.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../directions.dart'; 16 | 17 | extension type TransitAgency._(JSObject _) implements JSObject { 18 | external TransitAgency({ 19 | String name, 20 | String phone, 21 | String url, 22 | }); 23 | external String name; 24 | external String phone; 25 | external String url; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/generated/directions/transit_fare.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../directions.dart'; 16 | 17 | extension type TransitFare._(JSObject _) implements JSObject { 18 | external TransitFare({ 19 | String currency, 20 | num value, 21 | }); 22 | external String currency; 23 | external num value; 24 | } 25 | -------------------------------------------------------------------------------- /lib/src/generated/directions/transit_route_preference.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../directions.dart'; 16 | 17 | @JS('google.maps.TransitRoutePreference') 18 | extension type TransitRoutePreference._(JSAny _) implements JSAny { 19 | external static TransitRoutePreference get FEWER_TRANSFERS; 20 | external static TransitRoutePreference get LESS_WALKING; 21 | } 22 | -------------------------------------------------------------------------------- /lib/src/generated/directions/transit_stop.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../directions.dart'; 16 | 17 | extension type TransitStop._(JSObject _) implements JSObject { 18 | external TransitStop({ 19 | LatLng location, 20 | String name, 21 | }); 22 | external LatLng location; 23 | external String name; 24 | } 25 | -------------------------------------------------------------------------------- /lib/src/generated/directions/travel_mode.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../directions.dart'; 16 | 17 | @JS('google.maps.TravelMode') 18 | extension type TravelMode._(JSAny _) implements JSAny { 19 | external static TravelMode get BICYCLING; 20 | external static TravelMode get DRIVING; 21 | external static TravelMode get TRANSIT; 22 | external static TravelMode get WALKING; 23 | } 24 | -------------------------------------------------------------------------------- /lib/src/generated/directions/unit_system.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../directions.dart'; 16 | 17 | @JS('google.maps.UnitSystem') 18 | extension type UnitSystem._(JSAny _) implements JSAny { 19 | external static UnitSystem get IMPERIAL; 20 | external static UnitSystem get METRIC; 21 | } 22 | -------------------------------------------------------------------------------- /lib/src/generated/errors.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | import 'dart:js_interop'; 16 | import '/src/js/error.dart' show JSError; 17 | part 'errors/maps_network_error.dart'; 18 | part 'errors/maps_network_error_endpoint.dart'; 19 | part 'errors/maps_request_error.dart'; 20 | part 'errors/maps_server_error.dart'; 21 | -------------------------------------------------------------------------------- /lib/src/generated/errors/maps_request_error.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../errors.dart'; 16 | 17 | @JS('google.maps.MapsRequestError') 18 | extension type MapsRequestError._(MapsNetworkError _) 19 | implements MapsNetworkError {} 20 | -------------------------------------------------------------------------------- /lib/src/generated/errors/maps_server_error.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../errors.dart'; 16 | 17 | @JS('google.maps.MapsServerError') 18 | extension type MapsServerError._(MapsNetworkError _) 19 | implements MapsNetworkError {} 20 | -------------------------------------------------------------------------------- /lib/src/generated/event.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | import 'dart:js_interop'; 16 | import '/src/js/error.dart' show JSError; 17 | import 'dart:async' show Stream, StreamController; 18 | part 'event/error_event.dart'; 19 | part 'event/event.dart'; 20 | part 'event/maps_event_listener.dart'; 21 | part 'event/mvcarray.dart'; 22 | part 'event/mvcobject.dart'; 23 | -------------------------------------------------------------------------------- /lib/src/generated/event/error_event.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../event.dart'; 16 | 17 | extension type ErrorEvent._(JSObject _) implements JSObject { 18 | external ErrorEvent({ 19 | JSError error, 20 | }); 21 | external JSError error; 22 | } 23 | -------------------------------------------------------------------------------- /lib/src/generated/event/maps_event_listener.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../event.dart'; 16 | 17 | extension type MapsEventListener._(JSObject _) implements JSObject { 18 | external void remove(); 19 | } 20 | -------------------------------------------------------------------------------- /lib/src/generated/geocoder/containment.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../geocoder.dart'; 16 | 17 | @JS('google.maps.Containment') 18 | extension type Containment._(JSAny _) implements JSAny { 19 | external static Containment get NEAR; 20 | external static Containment get OUTSKIRTS; 21 | external static Containment get WITHIN; 22 | } 23 | -------------------------------------------------------------------------------- /lib/src/generated/geocoder/extra_geocode_computation.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../geocoder.dart'; 16 | 17 | @JS('google.maps.ExtraGeocodeComputation') 18 | extension type ExtraGeocodeComputation._(JSAny _) implements JSAny { 19 | external static ExtraGeocodeComputation get ADDRESS_DESCRIPTORS; 20 | } 21 | -------------------------------------------------------------------------------- /lib/src/generated/journey_sharing_authentication/auth_token.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../journey_sharing_authentication.dart'; 16 | 17 | extension type AuthToken._(JSObject _) implements JSObject { 18 | external AuthToken({ 19 | num expiresInSeconds, 20 | String token, 21 | }); 22 | external num expiresInSeconds; 23 | external String token; 24 | } 25 | -------------------------------------------------------------------------------- /lib/src/generated/journey_sharing_authentication/auth_token_fetcher.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../journey_sharing_authentication.dart'; 16 | 17 | typedef AuthTokenFetcher 18 | = JSFunction /*JSPromise Function(AuthTokenFetcherOptions)*/; 19 | -------------------------------------------------------------------------------- /lib/src/generated/journey_sharing_fleet_engine_entities/speed.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../journey_sharing_fleet_engine_entities.dart'; 16 | 17 | @JS('google.maps.journeySharing.Speed') 18 | extension type Speed._(JSAny _) implements JSAny { 19 | external static Speed get NORMAL; 20 | external static Speed get SLOW; 21 | external static Speed get TRAFFIC_JAM; 22 | } 23 | -------------------------------------------------------------------------------- /lib/src/generated/journey_sharing_fleet_engine_entities/time_window.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../journey_sharing_fleet_engine_entities.dart'; 16 | 17 | extension type TimeWindow._(JSObject _) implements JSObject { 18 | external TimeWindow({ 19 | Date endTime, 20 | Date startTime, 21 | }); 22 | external Date endTime; 23 | external Date startTime; 24 | } 25 | -------------------------------------------------------------------------------- /lib/src/generated/journey_sharing_map_view/location_provider.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../journey_sharing_map_view.dart'; 16 | 17 | @JS('google.maps.journeySharing.LocationProvider') 18 | extension type LocationProvider._(JSObject _) implements JSObject { 19 | external MapsEventListener addListener( 20 | String eventName, 21 | JSFunction handler, 22 | ); 23 | } 24 | -------------------------------------------------------------------------------- /lib/src/generated/journey_sharing_ui_customization/marker_setup.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../journey_sharing_ui_customization.dart'; 16 | 17 | typedef MarkerSetup 18 | = JSAny /*MarkerSetupOptions|MarkerSetupOptions Function(DefaultMarkerSetupOptions)*/; 19 | -------------------------------------------------------------------------------- /lib/src/generated/journey_sharing_ui_customization/marker_setup_options.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../journey_sharing_ui_customization.dart'; 16 | 17 | extension type MarkerSetupOptions._(JSObject _) implements JSObject { 18 | external MarkerSetupOptions({ 19 | MarkerOptions? markerOptions, 20 | }); 21 | external MarkerOptions? markerOptions; 22 | } 23 | -------------------------------------------------------------------------------- /lib/src/generated/journey_sharing_ui_customization/polyline_setup.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../journey_sharing_ui_customization.dart'; 16 | 17 | typedef PolylineSetup 18 | = JSAny /*PolylineSetupOptions|PolylineSetupOptions Function(DefaultPolylineSetupOptions)*/; 19 | -------------------------------------------------------------------------------- /lib/src/generated/kml/kml_author.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../kml.dart'; 16 | 17 | extension type KmlAuthor._(JSObject _) implements JSObject { 18 | external KmlAuthor({ 19 | String email, 20 | String name, 21 | String uri, 22 | }); 23 | external String email; 24 | external String name; 25 | external String uri; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/generated/local_context_map_view/map_directions_options_literal.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../local_context_map_view.dart'; 16 | 17 | extension type MapDirectionsOptionsLiteral._(JSObject _) implements JSObject { 18 | external MapDirectionsOptionsLiteral({ 19 | LatLngOrLatLngLiteral origin, 20 | }); 21 | external LatLngOrLatLngLiteral origin; 22 | } 23 | -------------------------------------------------------------------------------- /lib/src/generated/local_context_map_view/place_chooser_layout_mode.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../local_context_map_view.dart'; 16 | 17 | @JS('google.maps.localContext.PlaceChooserLayoutMode') 18 | extension type PlaceChooserLayoutMode._(JSAny _) implements JSAny { 19 | external static PlaceChooserLayoutMode get HIDDEN; 20 | external static PlaceChooserLayoutMode get SHEET; 21 | } 22 | -------------------------------------------------------------------------------- /lib/src/generated/local_context_map_view/place_type_preference.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../local_context_map_view.dart'; 16 | 17 | typedef PlaceTypePreference 18 | = JSAny? /*UNPARSED:{  type:string,  weight:number optional}*/; 19 | -------------------------------------------------------------------------------- /lib/src/generated/map/color_scheme.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../map.dart'; 16 | 17 | @JS('google.maps.ColorScheme') 18 | extension type ColorScheme._(JSAny _) implements JSAny { 19 | external static ColorScheme get DARK; 20 | external static ColorScheme get FOLLOW_SYSTEM; 21 | external static ColorScheme get LIGHT; 22 | } 23 | -------------------------------------------------------------------------------- /lib/src/generated/map/icon_mouse_event.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../map.dart'; 16 | 17 | extension type IconMouseEvent._(MapMouseEvent _) 18 | implements MapMouseEvent, MapMouseEventOrIconMouseEvent { 19 | external IconMouseEvent({ 20 | String? placeId, 21 | }); 22 | external String? placeId; 23 | } 24 | -------------------------------------------------------------------------------- /lib/src/generated/map/map_type_id.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../map.dart'; 16 | 17 | @JS('google.maps.MapTypeId') 18 | extension type MapTypeId._(JSAny _) implements JSAny { 19 | external static MapTypeId get HYBRID; 20 | external static MapTypeId get ROADMAP; 21 | external static MapTypeId get SATELLITE; 22 | external static MapTypeId get TERRAIN; 23 | } 24 | -------------------------------------------------------------------------------- /lib/src/generated/map/map_type_registry.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../map.dart'; 16 | 17 | @JS('google.maps.MapTypeRegistry') 18 | extension type MapTypeRegistry._(MVCObject _) implements MVCObject { 19 | external MapTypeRegistry(); 20 | external void set( 21 | String id, 22 | JSAny /*MapType|JSAny?*/ mapType, 23 | ); 24 | } 25 | -------------------------------------------------------------------------------- /lib/src/generated/map/rendering_type.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../map.dart'; 16 | 17 | @JS('google.maps.RenderingType') 18 | extension type RenderingType._(JSAny _) implements JSAny { 19 | external static RenderingType get RASTER; 20 | external static RenderingType get UNINITIALIZED; 21 | external static RenderingType get VECTOR; 22 | } 23 | -------------------------------------------------------------------------------- /lib/src/generated/map/traffic_layer_options.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../map.dart'; 16 | 17 | extension type TrafficLayerOptions._(JSObject _) implements JSObject { 18 | external TrafficLayerOptions({ 19 | bool? autoRefresh, 20 | Map? map, 21 | }); 22 | external bool? autoRefresh; 23 | external Map? map; 24 | } 25 | -------------------------------------------------------------------------------- /lib/src/generated/map/zoom_change_event.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../map.dart'; 16 | 17 | @JS('google.maps.ZoomChangeEvent') 18 | extension type ZoomChangeEvent._(Event _) implements Event {} 19 | -------------------------------------------------------------------------------- /lib/src/generated/marker/animation.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../marker.dart'; 16 | 17 | @JS('google.maps.Animation') 18 | extension type Animation._(JSAny _) implements JSAny { 19 | external static Animation get BOUNCE; 20 | external static Animation get DROP; 21 | } 22 | -------------------------------------------------------------------------------- /lib/src/generated/max_zoom.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | import 'dart:js_interop'; 16 | import 'coordinates.dart' show LatLngOrLatLngLiteral; 17 | part 'max_zoom/max_zoom_result.dart'; 18 | part 'max_zoom/max_zoom_service.dart'; 19 | part 'max_zoom/max_zoom_status.dart'; 20 | -------------------------------------------------------------------------------- /lib/src/generated/max_zoom/max_zoom_result.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../max_zoom.dart'; 16 | 17 | extension type MaxZoomResult._(JSObject _) implements JSObject { 18 | external MaxZoomResult({ 19 | num zoom, 20 | MaxZoomStatus? status, 21 | }); 22 | external num zoom; 23 | external MaxZoomStatus? status; 24 | } 25 | -------------------------------------------------------------------------------- /lib/src/generated/max_zoom/max_zoom_status.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../max_zoom.dart'; 16 | 17 | @JS('google.maps.MaxZoomStatus') 18 | extension type MaxZoomStatus._(JSAny _) implements JSAny { 19 | external static MaxZoomStatus get ERROR; 20 | external static MaxZoomStatus get OK; 21 | } 22 | -------------------------------------------------------------------------------- /lib/src/generated/place/attribution.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../place.dart'; 16 | 17 | @JS('google.maps.places.Attribution') 18 | extension type Attribution._(JSObject _) implements JSObject { 19 | external String? provider; 20 | external String? providerURI; 21 | } 22 | -------------------------------------------------------------------------------- /lib/src/generated/place/author_attribution.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../place.dart'; 16 | 17 | @JS('google.maps.places.AuthorAttribution') 18 | extension type AuthorAttribution._(JSObject _) implements JSObject { 19 | external String displayName; 20 | external String? photoURI; 21 | external String? uri; 22 | } 23 | -------------------------------------------------------------------------------- /lib/src/generated/place/fuel_price.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../place.dart'; 16 | 17 | @JS('google.maps.places.FuelPrice') 18 | extension type FuelPrice._(JSObject _) implements JSObject { 19 | external Money? price; 20 | external FuelType? type; 21 | external Date? updateTime; 22 | } 23 | -------------------------------------------------------------------------------- /lib/src/generated/place/money.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../place.dart'; 16 | 17 | @JS('google.maps.places.Money') 18 | extension type Money._(JSObject _) implements JSObject { 19 | external String currencyCode; 20 | external num nanos; 21 | external num units; 22 | @JS('toString') 23 | external String toString$js(); 24 | } 25 | -------------------------------------------------------------------------------- /lib/src/generated/place/opening_hours_period.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../place.dart'; 16 | 17 | @JS('google.maps.places.OpeningHoursPeriod') 18 | extension type OpeningHoursPeriod._(JSObject _) implements JSObject { 19 | external OpeningHoursPoint? close; 20 | external OpeningHoursPoint open; 21 | } 22 | -------------------------------------------------------------------------------- /lib/src/generated/place/opening_hours_point.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../place.dart'; 16 | 17 | @JS('google.maps.places.OpeningHoursPoint') 18 | extension type OpeningHoursPoint._(JSObject _) implements JSObject { 19 | external num day; 20 | external num hour; 21 | external num minute; 22 | } 23 | -------------------------------------------------------------------------------- /lib/src/generated/place/payment_options.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../place.dart'; 16 | 17 | @JS('google.maps.places.PaymentOptions') 18 | extension type PaymentOptions._(JSObject _) implements JSObject { 19 | external bool? acceptsCashOnly; 20 | external bool? acceptsCreditCards; 21 | external bool? acceptsDebitCards; 22 | external bool? acceptsNFC; 23 | } 24 | -------------------------------------------------------------------------------- /lib/src/generated/place/plus_code.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../place.dart'; 16 | 17 | @JS('google.maps.places.PlusCode') 18 | extension type PlusCode._(JSObject _) implements JSObject { 19 | external String? compoundCode; 20 | external String? globalCode; 21 | } 22 | -------------------------------------------------------------------------------- /lib/src/generated/place/search_by_text_rank_preference.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../place.dart'; 16 | 17 | @JS('google.maps.places.SearchByTextRankPreference') 18 | extension type SearchByTextRankPreference._(JSAny _) implements JSAny { 19 | external static SearchByTextRankPreference get DISTANCE; 20 | external static SearchByTextRankPreference get RELEVANCE; 21 | } 22 | -------------------------------------------------------------------------------- /lib/src/generated/place/search_nearby_rank_preference.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../place.dart'; 16 | 17 | @JS('google.maps.places.SearchNearbyRankPreference') 18 | extension type SearchNearbyRankPreference._(JSAny _) implements JSAny { 19 | external static SearchNearbyRankPreference get DISTANCE; 20 | external static SearchNearbyRankPreference get POPULARITY; 21 | } 22 | -------------------------------------------------------------------------------- /lib/src/generated/places_autocomplete_service/prediction_substring.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../places_autocomplete_service.dart'; 16 | 17 | extension type PredictionSubstring._(JSObject _) implements JSObject { 18 | external PredictionSubstring({ 19 | num length, 20 | num offset, 21 | }); 22 | external num length; 23 | external num offset; 24 | } 25 | -------------------------------------------------------------------------------- /lib/src/generated/places_autocomplete_service/prediction_term.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../places_autocomplete_service.dart'; 16 | 17 | extension type PredictionTerm._(JSObject _) implements JSObject { 18 | external PredictionTerm({ 19 | num offset, 20 | String value, 21 | }); 22 | external num offset; 23 | external String value; 24 | } 25 | -------------------------------------------------------------------------------- /lib/src/generated/places_service/location_bias.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../places_service.dart'; 16 | 17 | typedef LocationBias 18 | = JSAny /*LatLng|LatLngLiteral|LatLngBounds|LatLngBoundsLiteral|Circle|CircleLiteral|string*/; 19 | -------------------------------------------------------------------------------- /lib/src/generated/places_service/location_restriction.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../places_service.dart'; 16 | 17 | typedef LocationRestriction = LatLngBoundsOrLatLngBoundsLiteral; 18 | -------------------------------------------------------------------------------- /lib/src/generated/places_service/photo_options.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../places_service.dart'; 16 | 17 | extension type PhotoOptions._(JSObject _) implements JSObject { 18 | external PhotoOptions({ 19 | num? maxHeight, 20 | num? maxWidth, 21 | }); 22 | external num? maxHeight; 23 | external num? maxWidth; 24 | } 25 | -------------------------------------------------------------------------------- /lib/src/generated/places_service/place_aspect_rating.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../places_service.dart'; 16 | 17 | extension type PlaceAspectRating._(JSObject _) implements JSObject { 18 | external PlaceAspectRating({ 19 | num rating, 20 | String type, 21 | }); 22 | external num rating; 23 | external String type; 24 | } 25 | -------------------------------------------------------------------------------- /lib/src/generated/places_service/place_geometry.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../places_service.dart'; 16 | 17 | extension type PlaceGeometry._(JSObject _) implements JSObject { 18 | external PlaceGeometry({ 19 | LatLng? location, 20 | LatLngBounds? viewport, 21 | }); 22 | external LatLng? location; 23 | external LatLngBounds? viewport; 24 | } 25 | -------------------------------------------------------------------------------- /lib/src/generated/places_service/place_search_pagination.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../places_service.dart'; 16 | 17 | extension type PlaceSearchPagination._(JSObject _) implements JSObject { 18 | external PlaceSearchPagination({ 19 | bool hasNextPage, 20 | }); 21 | external bool hasNextPage; 22 | external void nextPage(); 23 | } 24 | -------------------------------------------------------------------------------- /lib/src/generated/places_service/rank_by.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../places_service.dart'; 16 | 17 | @JS('google.maps.places.RankBy') 18 | extension type RankBy._(JSAny _) implements JSAny { 19 | external static RankBy get DISTANCE; 20 | external static RankBy get PROMINENCE; 21 | } 22 | -------------------------------------------------------------------------------- /lib/src/generated/places_widget/place_autocomplete_place_select_event.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../places_widget.dart'; 16 | 17 | @JS('google.maps.places.PlaceAutocompletePlaceSelectEvent') 18 | extension type PlaceAutocompletePlaceSelectEvent._(Event _) implements Event { 19 | external Place place; 20 | } 21 | -------------------------------------------------------------------------------- /lib/src/generated/places_widget/place_autocomplete_request_error_event.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../places_widget.dart'; 16 | 17 | @JS('google.maps.places.PlaceAutocompleteRequestErrorEvent') 18 | extension type PlaceAutocompleteRequestErrorEvent._(Event _) implements Event {} 19 | -------------------------------------------------------------------------------- /lib/src/generated/places_widget/search_box_options.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../places_widget.dart'; 16 | 17 | extension type SearchBoxOptions._(JSObject _) implements JSObject { 18 | external SearchBoxOptions({ 19 | LatLngBoundsOrLatLngBoundsLiteral? bounds, 20 | }); 21 | external LatLngBoundsOrLatLngBoundsLiteral? bounds; 22 | } 23 | -------------------------------------------------------------------------------- /lib/src/generated/polygon/poly_mouse_event.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../polygon.dart'; 16 | 17 | extension type PolyMouseEvent._(MapMouseEvent _) implements MapMouseEvent { 18 | external PolyMouseEvent({ 19 | num? edge, 20 | num? path, 21 | num? vertex, 22 | }); 23 | external num? edge; 24 | external num? path; 25 | external num? vertex; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/generated/polygon/stroke_position.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../polygon.dart'; 16 | 17 | @JS('google.maps.StrokePosition') 18 | extension type StrokePosition._(JSAny _) implements JSAny { 19 | external static StrokePosition get CENTER; 20 | external static StrokePosition get INSIDE; 21 | external static StrokePosition get OUTSIDE; 22 | } 23 | -------------------------------------------------------------------------------- /lib/src/generated/settings.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | import 'dart:js_interop'; 16 | import '/src/js/iterable.dart' show JSIterable; 17 | part 'settings/settings.dart'; 18 | -------------------------------------------------------------------------------- /lib/src/generated/settings/settings.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../settings.dart'; 16 | 17 | @JS('google.maps.Settings') 18 | extension type Settings._(JSObject _) implements JSObject { 19 | external JSIterable experienceIds; 20 | @JS('getInstance') 21 | external static Settings _getInstance(); 22 | static Settings get instance => _getInstance(); 23 | } 24 | -------------------------------------------------------------------------------- /lib/src/generated/street_view/pano_provider_options.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../street_view.dart'; 16 | 17 | extension type PanoProviderOptions._(JSObject _) implements JSObject { 18 | external PanoProviderOptions({ 19 | bool? cors, 20 | }); 21 | external bool? cors; 22 | } 23 | -------------------------------------------------------------------------------- /lib/src/generated/street_view/street_view_address_control_options.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../street_view.dart'; 16 | 17 | extension type StreetViewAddressControlOptions._(JSObject _) 18 | implements JSObject { 19 | external StreetViewAddressControlOptions({ 20 | ControlPosition? position, 21 | }); 22 | external ControlPosition? position; 23 | } 24 | -------------------------------------------------------------------------------- /lib/src/generated/street_view/street_view_pov.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../street_view.dart'; 16 | 17 | extension type StreetViewPov._(JSObject _) implements JSObject { 18 | external StreetViewPov({ 19 | num heading, 20 | num pitch, 21 | }); 22 | external num heading; 23 | external num pitch; 24 | } 25 | -------------------------------------------------------------------------------- /lib/src/generated/street_view_service/street_view_pano_request.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../street_view_service.dart'; 16 | 17 | extension type StreetViewPanoRequest._(JSObject _) implements JSObject { 18 | external StreetViewPanoRequest({ 19 | String? pano, 20 | }); 21 | external String? pano; 22 | } 23 | -------------------------------------------------------------------------------- /lib/src/generated/street_view_service/street_view_preference.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../street_view_service.dart'; 16 | 17 | @JS('google.maps.StreetViewPreference') 18 | extension type StreetViewPreference._(JSAny _) implements JSAny { 19 | external static StreetViewPreference get BEST; 20 | external static StreetViewPreference get NEAREST; 21 | } 22 | -------------------------------------------------------------------------------- /lib/src/generated/street_view_service/street_view_response.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../street_view_service.dart'; 16 | 17 | extension type StreetViewResponse._(JSObject _) implements JSObject { 18 | external StreetViewResponse({ 19 | StreetViewPanoramaData data, 20 | }); 21 | external StreetViewPanoramaData data; 22 | } 23 | -------------------------------------------------------------------------------- /lib/src/generated/top_level.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | import 'dart:js_interop'; 16 | part 'top_level/maps.dart'; 17 | -------------------------------------------------------------------------------- /lib/src/generated/visualization.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | import 'dart:js_interop'; 16 | import 'coordinates.dart' show LatLng; 17 | import 'event.dart' show MVCArray, MVCObject; 18 | import 'map.dart' show Map; 19 | part 'visualization/heatmap_layer.dart'; 20 | part 'visualization/heatmap_layer_options.dart'; 21 | part 'visualization/weighted_location.dart'; 22 | -------------------------------------------------------------------------------- /lib/src/generated/visualization/weighted_location.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../visualization.dart'; 16 | 17 | extension type WeightedLocation._(JSObject _) implements JSObject { 18 | external WeightedLocation({ 19 | LatLng location, 20 | num weight, 21 | }); 22 | external LatLng location; 23 | external num weight; 24 | } 25 | -------------------------------------------------------------------------------- /lib/src/generated/webgl/web_glstate_options.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Alexandre Ardhuin 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | part of '../webgl.dart'; 16 | 17 | extension type WebGLStateOptions._(JSObject _) implements JSObject { 18 | external WebGLStateOptions({ 19 | WebGLRenderingContext gl, 20 | }); 21 | external WebGLRenderingContext gl; 22 | } 23 | -------------------------------------------------------------------------------- /lib/src/js/date.dart: -------------------------------------------------------------------------------- 1 | import 'dart:js_interop'; 2 | 3 | @JS('Date') 4 | extension type Date._(JSObject _) implements JSObject {} 5 | -------------------------------------------------------------------------------- /lib/src/js/error.dart: -------------------------------------------------------------------------------- 1 | import 'dart:js_interop'; 2 | 3 | @JS('Error') 4 | extension type JSError._(JSObject _) implements JSObject {} 5 | -------------------------------------------------------------------------------- /lib/src/js/iterable.dart: -------------------------------------------------------------------------------- 1 | import 'dart:js_interop'; 2 | 3 | extension type JSIterable._(JSObject _) implements JSObject { 4 | external JSIterableNextResult next(); 5 | } 6 | 7 | extension type JSIterableNextResult._(JSObject _) 8 | implements JSObject { 9 | external bool get done; 10 | external T? get value; 11 | } 12 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: google_maps 2 | version: 8.1.1 3 | description: > 4 | With that package you will be able to use Google Maps JavaScript API from Dart 5 | scripts. 6 | homepage: https://github.com/a14n/dart-google-maps 7 | environment: 8 | sdk: ^3.4.0 9 | dependencies: 10 | meta: ^1.3.0 11 | web: ">=0.5.1 <2.0.0" 12 | dev_dependencies: 13 | build_runner: ^2.4.0 14 | build_web_compilers: ^4.0.0 15 | collection: 16 | html: ^0.15.0 17 | http: ^1.2.2 18 | lints: ^5.0.0 19 | path: ^1.7.0 20 | petitparser: ^6.0.2 21 | --------------------------------------------------------------------------------