POST
|
Do you know when this bug will be fixed? This is a critical feature for our application. Bjorn
... View more
05-07-2012
02:59 AM
|
0
|
0
|
561
|
POST
|
Hi Shreyas, Yes, it is a workaround to recenter the map on each click - but we would like to have the default behavior where the popup is placed according to the map window. Any chance you'll fix this bug? This seems to work correctly with the standard InfoWindow, the problem occurs in esri.dijit.Popup. Bjorn
... View more
04-23-2012
03:30 AM
|
0
|
0
|
1077
|
POST
|
Anyone from ESRI who knows how to fix this issue? Is it possible to get an unminified version of the esri.dijit.Popup JavaScript code? http://serverapi.arcgisonline.com/jsapi/arcgis/2.8/js/esri/dijit/Popup.xd.js
... View more
04-20-2012
12:57 AM
|
0
|
0
|
1077
|
POST
|
I've added the class to the body tag, but it didn't fix the issue. The HTML-file is available in the attached file (popup.zip). Bjorn
... View more
04-19-2012
09:12 AM
|
0
|
0
|
1077
|
POST
|
The same problem occurs when the map is not absolute positioned as well: http://dl.dropbox.com/u/2306934/NRK/trafikk/popupbug/popup3.html On this page, the map is placed below a header div with a height of 400px. The popup is displaced: [ATTACH=CONFIG]13664[/ATTACH] Any solution to this issue?
... View more
04-19-2012
12:28 AM
|
0
|
0
|
1077
|
POST
|
Hi, I have a map on page that is absolute positioned: http://dl.dropbox.com/u/2306934/NRK/trafikk/popupbug/popup.html #mapcontainer { position: absolute; top: 400px; left: 300px; } The problem with absolute positioned maps is that the popup placement is not working correctly; the popup is displayed outside the map window: [ATTACH=CONFIG]13627[/ATTACH] We need to use absolute positioned elements on our site - is it possible to fix this issue? I presume there is a bug in the "_setPosition" function of esri.dijit.Popup: http://serverapi.arcgisonline.com/jsapi/arcgis/2.8/js/esri/dijit/Popup.xd.js
... View more
04-18-2012
05:25 AM
|
0
|
15
|
4705
|
POST
|
Hi Derek, I tried your example, but I'm not able to move the marker after it's been hidden (by panning the map). Do you know how to fix it? Bjørn There's an easier way to do this. I think the code below was originally posted in the old forums but I've hung on to it for a while: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>Moving a marker</title>
<link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.2/js/dojo/dijit/themes/tundra/tundra.css">
<script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.2"></script>
<script type="text/javascript">
dojo.require("esri.map");
dojo.require("dojox.gfx.move");
dojo.addOnLoad(init);
var map;
function init() {
map = new esri.Map("map");
dojo.connect(map, "onLoad", onMapLoad);
var tiledMapServiceLayer = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer");
map.addLayer(tiledMapServiceLayer);
}
function onMapLoad() {
var geometry = map.extent.getCenter().offset(0, 15);
var symbol = new esri.symbol.SimpleMarkerSymbol().setColor("red");
var graphic = new esri.Graphic(geometry, symbol);
// Add a graphic
map.graphics.add(graphic);
// Make the shape moveable
var dojoShape = graphic.getDojoShape();
var moveable = new dojox.gfx.Moveable(dojoShape);
// Update the geometry at the end of move
var moveStopToken = dojo.connect(moveable, "onMoveStop", function(mover) {
// Get the transformation that was applied to
// the shape since the last move
var tx = dojoShape.getTransform();
var startPoint = graphic.geometry;
var endPoint = map.toMap(map.toScreen(startPoint).offset(tx.dx, tx.dy));
// clear out the transformation
dojoShape.setTransform(null);
// update the graphic geometry
graphic.setGeometry(endPoint);
// You can find quite a bit of information about
// applying transformations to Dojo gfx shapes in this
// document:
// http://docs.dojocampus.org/dojox/gfx#coordinates-and-transformations
});
}
</script>
</head>
<body class="tundra">
<p>
</p>
<div id="map" style="width:700px; height:500px; border:1px solid #000;"></div>
</body>
</html>
... View more
07-05-2011
02:34 AM
|
0
|
1
|
1386
|
POST
|
Hi, When creating a snapping manager on a graphics layer I get the error "Uncaught TypeError: Cannot read property 'declaredClass' of null". <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=7,IE=9" />
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/>
<title>VE Tile Layer</title>
<link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.3/js/dojo/dijit/themes/claro/claro.css">
<script type="text/javascript">djConfig = { parseOnLoad:true }</script>
<script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.3"></script>
<script type="text/javascript" charset="utf-8">
dojo.require("esri.map");
dojo.require("esri.SnappingManager");
dojo.require("esri.virtualearth.VETiledLayer");
var veTileLayer;
function init() {
var options = {
extent: new esri.geometry.Extent({
xmin: 1191657,
ymin: 8383658,
xmax: 1196348,
ymax: 8386042,
spatialReference: {
wkid: 102113
}
})
};
var map = new esri.Map("map", options);
//Creates the Virtual Earth layer to add to the map
veTileLayer = new esri.virtualearth.VETiledLayer({
bingMapsKey: 'Av1bH4keF8rXBtxWOegklgWGCYYz8UGYvBhsWKuvc4Z15kT76xVFOERk8jkKEDvT',
mapStyle: esri.virtualearth.VETiledLayer.MAP_STYLE_ROAD
});
map.addLayer(veTileLayer);
// Add route
// http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/polyline.htm
var route = new esri.geometry.Polyline(new esri.SpatialReference({wkid:102113}));
route.addPath([[1191657,8383658], [1196348,8386042]]);
var routeStyle = new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([0,0,255]), 3);
var graphic = new esri.Graphic(route, routeStyle);
var routeLayer = new esri.layers.GraphicsLayer({opacity:0.80});
routeLayer.add(graphic);
map.addLayer(routeLayer);
var snappingManager = new esri.SnappingManager({
alwaysSnap: true,
layerInfos: [{layer:routeLayer}],
map: map
});
}
dojo.addOnLoad(init);
</script>
</head>
<body class="claro">
<div style="position:relative;">
<div id="map" style="width:1024px; height:512px; border:1px solid #000;"></div>
</div>
</body>
</html> What could be wrong?!?
... View more
07-05-2011
12:50 AM
|
0
|
1
|
2056
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|