googlemaps-v3-utility-library
Version:
Google Maps API V3 Utility Library
188 lines (174 loc) • 3.54 kB
JavaScript
// this file contains externs that are not in default or gmaps v3 extern.
// needed when compile for lib or with app together.
// includes:
// --- some properties not in default.
// --- json properties; so apps can use dot notation.
// --- SR parameters
// --- constructor object literals.
/** @type {object} */
CSSProperties.prototype.filters = {};
/** @type {number} */
CSSProperties.prototype.filters.alpha = 0;
/** @type {object } */
var REST_JSON = {
geometry: null,
x: 0,
y: 0,
paths: null,
points: null,
rings: null,
xmin: 0,
ymin: 0,
xmax: 0,
ymax: 0,
f: null,
inSpatialReference: null,
outSpatialReference: null,
inSR: null,
outSR: null,
geometries: null,
geometryType: null,
geometry: null,
spatialRelationship: null,
spatialRel: null,
outFields: null,
objectIds: null,
time: null,
returnGeometry: false,
returnIdsOnly: false,
overlayOptions: null,
bounds:null,
bbox:null,
size: null,
dpi:0,
imageSR:null,
bboxSR:null,
format: null,
layerDefinitions: null,
layerDefs: null,
layerIds: null,
layerOption: null,
transparent:false,
error: null,
details:null,
serviceDescription: null,
mapName: null,
description: null,
copyrightText: null,
layers: [{
id: 0,
name: null,
displayFieldName:null,
defaultVisibility: true,
parentLayerId: -1,
subLayerIds: null,
subLayers:[],
// legend
layerId:null,
layerName:'',
layerType:'Feature Layer',
minScale:0,
maxScale:0,
legend:{
label:'',
url:'',
imageData:'',
contentType:'image/png'
}
}],
tables: null,
spatialReference: {
wkid: 4326,
wkt: null
},
fields:null,
drawingInfo:{
renderer:{
symbol:{
contentType:null,
imageData:null
}
}
},
singleFusedMapCache: true,
tileInfo: {
rows: 512,
cols: 512,
dpi: 96,
format: null,
compressionQuality: 75,
origin: null,
lods: [{
level: 0,
resolution: 0,
scale: 0
}]
},
initialExtent: null,
fullExtent: null,
units: null,
supportedImageFormatTypes: null,
documentInfo: {
Title: null,
Author: null,
Comments: null,
Subject: null,
Category: null,
Keywords: null
},
extent:null,
bounds: null,
results:null,
result: null,
imageDisplay:null,
sr:null,
mapExtent:null,
tolerance:0,
//query
where:null,
features:null,
searchText:null,
contains:null,
searchFields:null,
layerName:null,
foundFieldName:null,
// geocode
serviceDescription:null,
addressFields:{
name: null,
alias: null,
required: false, type:null
},
candidateFields:null,
intersectionCandidateFields:null,
locatorProperties:null,
outFields:null,
outSR:null,
candidates:null,
address:null,
location:null,
score:null,
attributes:null,
distance:null,
// buffer:
bufferSpatialReference:null,
bufferSR:null,
distances:null,
unit:null,
unionResults: false,
//GP
features:null,
parameters:null,
// route:
stops:null,
barriers:null,
polylineBarriers:null,
polygonBarriers:null,
attributeParameterValues:null,
returnDirections:null,
returnRoutes:null,
returnStops:null,
returnBarriers:null,
findBestSequence:null
};
google.maps.Map.prototype.agsOverlays= {};