I'm trying to get a popup window that identifies a location to be moveable. My code is similar to the API example:
var popupOptions = {
fillSymbol: new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID,
new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,
new dojo.Color([255, 0, 0]), 2),
new dojo.Color([255, 255, 0, 0.25]))
}
var popup = new esri.dijit.Popup(popupOptions, dojo.create("div"));
map = new esri.Map("map", {
infoWindow:popup,
extent: initExtent
});
I can't seem to find anywhere that will allow me to make that popup infowindow moveable (was thinking of trying to implement dojo.dnd.moveable).
I've tried, unsucessfully:
function makeMoveable(node){
var dnd = new dojo.dnd.Moveable(dojo.byId(node));
}
makeMoveable(popup);
Anyone have a suggestion?
dijit
's made by ESRI. I work a lot with esri JS api and I've found lots of bugs in those. And IMO those modules are not very configurable.