You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Update Google Maps definitions to latest version #4364
@vvakame I have made a start on this. However, this is quite a large library so will take a bit of time for me to update completely.
The following is a list of all types defined in the latest JavaScript API reference. Those marked as done are the ones which I have updated so far.
Map
Map
MapOptions
MapTypeId
Controls
MapTypeControlOptions
MapTypeControlStyle
OverviewMapControlOptions
PanControlOptions
RotateControlOptions
ScaleControlOptions
ScaleControlStyle
StreetViewControlOptions
ZoomControlOptions
ZoomControlStyle
ControlPosition
Data
Data
Data.DataOptions
Data.GeoJsonOptions
Data.StyleOptions
Data.StylingFunction
Data.Feature
Data.FeatureOptions
Data.Geometry
Data.Point
Data.MultiPoint
Data.LineString
Data.MultiLineString
Data.LinearRing
Data.Polygon
Data.MultiPolygon
Data.GeometryCollection
Data.MouseEvent
Data.AddFeatureEvent
Data.RemoveFeatureEvent
Data.SetGeometryEvent
Data.SetPropertyEvent
Data.RemovePropertyEvent
Overlays
Marker
MarkerOptions
Icon
MarkerShape
Symbol
SymbolPath
Animation
InfoWindow
InfoWindowOptions
Polyline
PolylineOptions
IconSequence
Polygon
PolygonOptions
PolyMouseEvent
Rectangle
RectangleOptions
Circle
CircleOptions
StrokePosition
GroundOverlay
GroundOverlayOptions
OverlayView
MapPanes
MapCanvasProjection
Services
Geocoder
GeocoderRequest
GeocoderComponentRestrictions
GeocoderStatus
GeocoderResult
GeocoderAddressComponent
GeocoderGeometry
GeocoderLocationType
DirectionsRenderer
DirectionsRendererOptions
DirectionsService
DirectionsRequest
TravelMode
UnitSystem
TransitOptions
TransitMode
TransitRoutePreference
TransitFare
DirectionsWaypoint
DirectionsStatus
DirectionsResult
DirectionsRoute
DirectionsLeg
DirectionsStep
Distance
Duration
Time
TransitDetails
TransitStop
TransitLine
TransitAgency
TransitVehicle
VehicleType
ElevationService
LocationElevationRequest
PathElevationRequest
ElevationResult
ElevationStatus
MaxZoomService
MaxZoomResult
MaxZoomStatus
DistanceMatrixService
DistanceMatrixRequest
DistanceMatrixResponse
DistanceMatrixResponseRow
DistanceMatrixResponseElement
DistanceMatrixStatus
DistanceMatrixElementStatus
Save to Google Maps
Attribution
Place
SaveWidget
SaveWidgetOptions
Map Types
MapType
MapTypeRegistry
Projection
ImageMapType
ImageMapTypeOptions
StyledMapType
StyledMapTypeOptions
MapTypeStyle
MapTypeStyleFeatureType
MapTypeStyleElementType
MapTypeStyler
Layers
BicyclingLayer
FusionTablesLayer
FusionTablesLayerOptions
FusionTablesQuery
FusionTablesStyle
FusionTablesHeatmap
FusionTablesMarkerOptions
FusionTablesPolygonOptions
FusionTablesPolylineOptions
FusionTablesMouseEvent
FusionTablesCell
KmlLayer
KmlLayerOptions
KmlLayerMetadata
KmlLayerStatus
KmlMouseEvent
KmlFeatureData
KmlAuthor
TrafficLayer
TransitLayer
Street View
StreetViewPanorama
StreetViewPanoramaOptions
StreetViewAddressControlOptions
StreetViewLink
StreetViewPov
StreetViewPanoramaData
StreetViewLocation
StreetViewTileData
StreetViewService
StreetViewStatus
StreetViewCoverageLayer
Events
MapsEventListener
event
MouseEvent
Base
LatLng
LatLngLiteral
LatLngBounds
Point
Size
MVC
MVCObject
MVCArray
Geometry Library
encoding
spherical
poly
AdSense Library
AdUnit
AdUnitOptions
AdFormat
Panoramio Library
PanoramioLayer
PanoramioLayerOptions
PanoramioFeature
PanoramioMouseEvent
Places Library
Autocomplete
AutocompleteOptions
AutocompletePrediction
PredictionTerm
PredictionSubstring
AutocompleteService
AutocompletionRequest
ComponentRestrictions
PlaceAspectRating
PlaceDetailsRequest
PlaceGeometry
PlacePhoto
PhotoOptions
PlaceResult
PlaceReview
PlaceSearchPagination
PlaceSearchRequest
PlacesService
PlacesServiceStatus
QueryAutocompletePrediction
QueryAutocompletionRequest
RadarSearchRequest
RankBy
SearchBox
SearchBoxOptions
TextSearchRequest
Drawing Library
DrawingManager
DrawingManagerOptions
DrawingControlOptions
OverlayCompleteEvent
OverlayType
Weather Library
CloudLayer
WeatherLayer
WeatherLayerOptions
TemperatureUnit
WindSpeedUnit
LabelColor
WeatherMouseEvent
WeatherFeature
WeatherConditions
WeatherForecast
Visualization Library
MapsEngineLayer
MapsEngineLayerOptions
MapsEngineLayerProperties
MapsEngineMouseEvent
MapsEngineStatus
DynamicMapsEngineLayer
DynamicMapsEngineLayerOptions
DynamicMapsEngineMouseEvent
FeatureStyle
HeatmapLayer
HeatmapLayerOptions
WeightedLocation
Outstanding issues
Element is used in the definition in multiple places. The API documentation uses Node. The definitions should be updated to use Node instead of Element.
A number of parts of the API reference a typed MVCArray, e.g. MVCArray<LatLng>. Should a generic MVCArray<T> be added to the definitions.
A number of parts of the API reference a type of Array<LatLng|LatLngLiteral>. Is this accurately reflected by using LatLng[]|LatLngLiteral[]?
@PrashantAshok Good spot. I did initialy change this to be a single function definition as part of 3e467db, however, this appears to have been overwritten by a subsequent merge.
@PrashantAshok Thanks for raising this. This issue should be fixed by #4993. I've tried to check all options objects for the correct specification of optional properties, but I may have missed some. Feel free to raise these as new issues if you spot any.
The entire library should be up to date (with version 3.20 of the Google Maps API). However, the tests are severly lacking. If you would like to contribute some tests that would be really helpful. Feel free to start with a single aspect of the API, such as the Places library.
Activity
vvakame commentedon May 19, 2015
@cgwrench thanks your pull request!
please make additional pull request if you can... 😉
Begin update of Google Maps definitions to v3.20
cgwrench commentedon May 27, 2015
@vvakame I have made a start on this. However, this is quite a large library so will take a bit of time for me to update completely.
The following is a list of all types defined in the latest JavaScript API reference. Those marked as done are the ones which I have updated so far.
Outstanding issues
Elementis used in the definition in multiple places. The API documentation usesNode. The definitions should be updated to useNodeinstead ofElement.MVCArray, e.g.MVCArray<LatLng>. Should a genericMVCArray<T>be added to the definitions.Array<LatLng|LatLngLiteral>. Is this accurately reflected by usingLatLng[]|LatLngLiteral[]?rayshan commentedon Jun 16, 2015
+1
Update Google Maps definitions to v3.20
PrashantAshok commentedon Jul 13, 2015
Hey @cgwrench , it looks like InfoWindow.open() has been incorrectly updated in this pull request, as per 3.20 version it still accepts
Mapas option.Can you please fix it?
Fix definition of `google.maps.InfoWindow.open()`.
cgwrench commentedon Jul 13, 2015
@PrashantAshok Good spot. I did initialy change this to be a single function definition as part of 3e467db, however, this appears to have been overwritten by a subsequent merge.
This issue should be fixed by #4913.
PrashantAshok commentedon Jul 14, 2015
Thanks @cgwrench for the quick fix. I also noticed that all params of GeocoderComponentRestrictions should be optional as per the spec
btw, let me know if you need any help in updating type def for any remaining items, I can try to pitch in - places library?
Mark Google Maps options properties as optional.
cgwrench commentedon Jul 20, 2015
@PrashantAshok Thanks for raising this. This issue should be fixed by #4993. I've tried to check all options objects for the correct specification of optional properties, but I may have missed some. Feel free to raise these as new issues if you spot any.
The entire library should be up to date (with version 3.20 of the Google Maps API). However, the tests are severly lacking. If you would like to contribute some tests that would be really helpful. Feel free to start with a single aspect of the API, such as the Places library.
Fix definition of `google.maps.GeocoderRequest()`