In the older versions of the ArcGIS JavaScript API, you could specify the position of the infoWindow using map.infoWindow.setFixedAnchor(esri.dijit.InfoWindow.ANCHOR_UPPERRIGHT);
In version 3.11 this fails with TypeError: esri.dijit.InfoWindow is undefined
The help file for version 3.11 now says that setFixedAnchor is a string, so I tried map.infoWindow.setFixedAnchor("ANCHOR_UPPERRIGHT");
but this returns TypeError: map.infoWindow.setFixedAnchor is not a function
What is the correct syntax for using setFixedAnchor
with an infoWindow in version 3.11 and above?
map.on("load", function(){
map.infoWindow.resize(250,100); //this works
map.infoWindow.setFixedAnchor("ANCHOR_UPPERRIGHT"); //this fails
});
Aucun commentaire:
Enregistrer un commentaire