|
POST
|
did you find a solution to this? we just ran into it. Everything was fine at 10.0 At 10.2.2 we get this error on insert of st_geometry. Tried the SR patch, no improvement
... View more
10-13-2014
02:38 PM
|
0
|
1
|
5162
|
|
POST
|
For me its create_view When we try to create_views directly in sql with st_geometry we get "abstract_data_types not supported". Our only work around the commandline tools. Until then, we will not upgrade.
... View more
10-10-2014
12:29 PM
|
0
|
6
|
1846
|
|
POST
|
Thank you. It is nice to know its on the list so to speak, so I dont have to spend alot of time on work arounds. Thanks Jonathan Uihlein
... View more
09-03-2014
10:10 AM
|
0
|
0
|
747
|
|
POST
|
it didnt work for me b/c of the click event conflicts. Jonathan Uihlein indicated it is on the roadmap, but I am not sure where. It is desperately need.
... View more
08-26-2014
09:14 AM
|
0
|
3
|
2808
|
|
POST
|
var popup = Popup({
popupWindow: false
}, domConstruct.create("div"));
this.popup = popup;
//stub out for popup
//setup event handlers for the next/previous buttons
connect.connect(dom.byId("previous"), "click", lang.hitch(this, selectPrevious));
connect.connect(dom.byId("next"), "click", lang.hitch(this, selectNext));
//when the selection changes update the side panel to display the popup info for the
//currently selected feature.
connect.connect(popup, "onSelectionChange", lang.hitch(this, function() {
lang.hitch(this, displayPopupContent(popup.getSelectedFeature()));
}));
//when the selection is cleared remove the popup content from the side panel.
connect.connect(popup, "onClearFeatures", lang.hitch(this, function() {
dom.byId("featureCount").innerHTML = "Click to select feature(s)";
registry.byId("resultData").set("content", "");
domUtils.hide(dom.byId("pager"));
}));
//When features are associated with the map's info window update the sidebar with the new content.
connect.connect(popup, "onSetFeatures", lang.hitch(this, function() {
var summPane = registry.byId('rightPane');
if (!summPane._showing) {
summPane.toggle();
}
//when features set, clear results and set new
domConstruct.empty('resultSummaryTab');
array.forEach(popup.features, lang.hitch(this, function(graphic, idx) {
domConstruct.create('button', {innerHTML: graphic.getTitle(), id: "resultItem" + idx, 'class': 'nav'}, dom.byId('resultSummaryTab'));
domConstruct.place("<br/>", "resultSummaryTab");
connect.connect(dom.byId("resultItem" + idx), "click", null, lang.hitch(this, onResultSummaryItemClick, idx));
}));
lang.hitch(this, displayPopupContent(popup.getSelectedFeature()));
dom.byId("featureCount").innerHTML = popup.features.length + " feature(s) selected";
//enable navigation if more than one feature is selected
popup.features.length > 1 ? domUtils.show(dom.byId("pager")) : domUtils.hide(dom.byId("pager"));
popup.features.length > 1 ? registry.byId('rightTC').selectChild(registry.byId('resultSummaryTab')) : registry.byId('rightTC').selectChild(registry.byId('resultDetailsTab'));
}));
//results handlers
function selectPrevious() {
popup.selectPrevious();
onResultSummaryItemClick(popup.selectedIndex);
}
function selectNext() {
// alert('next');
popup.selectNext();
onResultSummaryItemClick(popup.selectedIndex);
}
//onclick handler
function onResultSummaryItemClick(idx) {
popup.select(idx);
var extent = popup.getSelectedFeature().geometry.getExtent();
if (!extent) {
map.centerAndZoom(popup.getSelectedFeature().geometry, 18).then(lang.hitch(this,function(){
popup.select(popup.selectedIndex);
})) ;
} else {
map.setExtent(extent, true).then(lang.hitch(this,function(){
popup.select(popup.selectedIndex);
}));
}
registry.byId('rightTC').selectChild(registry.byId('resultDetailsTab'));
if (idx === 0) {
domUtils.hide(dom.byId("previous"));
domUtils.show(dom.byId("next"));
} else if (idx === popup.count - 1) {
domUtils.show(dom.byId("previous"));
domUtils.hide(dom.byId("next"));
} else {
domUtils.show(dom.byId("previous"));
domUtils.show(dom.byId("next"));
}
}
//POPUP FUNCTIONS
function displayPopupContent(feature) {
if (feature) {
//clear links tab
domConstruct.empty('resultLinksTab');
//get content and set to results tab
// console.dir(feature);
var content = feature.getContent();
if(!content){
content = feature;
}
// console.log('content');
// console.dir(content);
registry.byId("resultData").set("content", content);
query(".attrTable").forEach(function(node, index, arr) {
if(node){
if(node.firstChild){
array.forEach(node.firstChild.children, function(child) {
if (child.lastChild.innerHTML === "") {
domConstruct.empty(child);
}
});
}
}
});
//get links and set to links tab
var links = feature.attributes.links;
for (var key in links) {
if (links.hasOwnProperty(key)) {
if (links[key]) {
var a = domConstruct.create('a', {href: links[key], target: "_blank"}, dom.byId('resultLinksTab'));
var img = domConstruct.create('img', {src: "images/" + key + ".png"}, a);
domClass.add(img, 'resultLink');
}
}
}
}
}
//add lods so we can get to level 20
this.map = new Map("map", {
infoWindow: popup,
basemap: "streets",
autoResize: true,
sliderStyle: style,
logo: false,
showAttribution: false,
lods: lods,
minZoom:10
});
map = this.map;
... View more
08-19-2014
12:27 PM
|
1
|
1
|
783
|
|
POST
|
Baffling as to why I have to do this, but here is the working code. Thanks Kelly and John
popup.select(idx);
var extent = popup.getSelectedFeature().geometry.getExtent();
if (!extent) {
map.centerAndZoom(popup.getSelectedFeature().geometry,18).then(lang.hitch(this,function(){
popup.select(popup.selectedIndex);
})) ;
} else {
map.setExtent(extent, true).then(lang.hitch(this,function(){
popup.select(popup.selectedIndex);
}));
}
... View more
08-19-2014
09:47 AM
|
1
|
0
|
2464
|
|
POST
|
actually, i dont think this is right. This is moving the selectedfeature to the front, which it is now doing. However it is not moving the HIGHLIGHT graphic, which is what I need. When i run this from the command line popup.getSelectedFeature().getShape().moveToFront() I see the graphic being moved, but its the feature, not the highlight.
... View more
08-19-2014
09:39 AM
|
0
|
0
|
2464
|
|
POST
|
still no go I tried
popup.select(idx);
var extent = popup.getSelectedFeature().geometry.getExtent();
if (!extent) {
map.centerAndZoom(popup.getSelectedFeature().geometry, 18).then(lang.hitch(this,function(){
popup.getSelectedFeature().getShape().moveToFront();
})) ;
} else {
map.setExtent(extent, true).then(lang.hitch(this,function(){
popup.getSelectedFeature().getShape().moveToFront();
}));
}
But it just wont highlight. If the feature is on the screen when i select it from the list, it works. If it is off the screen, it does not. Even though I am moving to it prior to selecting it. The if(!extent) above is to handle point data
... View more
08-19-2014
09:35 AM
|
0
|
3
|
2464
|
|
POST
|
Unfortunately I dont, its in a rather complicated app. When i console.dir(graphic) prior to trying getShape (also tried getShapes) I get a valid graphic. But even in firebug commandline if I call $p.getShape() it returns null
... View more
08-19-2014
09:29 AM
|
0
|
0
|
2464
|
|
POST
|
map.infoWindow.select(idx);
var extent = map.infoWindow.getSelectedFeature().geometry.getExtent();
console.log(extent);
var graphic = map.infoWindow.getSelectedFeature();
results in good extent, so map.infoWindow.getSelectedFeature() is fine, but then
Object { type="extent", xmin=-9191676.043059396, ymin=3183521.7840280095, more...}
TypeError: graphic.getShape(...) is null
graphic.getShape().moveToFront();
So it is selecting, it can get the selectedfeature to get an extent (its a polygon) but getShape is returning null )
... View more
08-19-2014
09:11 AM
|
0
|
7
|
2464
|
|
POST
|
using javascript api 3.10 I am using a popup in a sidepanel. When I click "next" (using the sample integrated in my application) it calls map.infoWindow.selectNext();
onResultSummaryItemClick(map.infoWindow.selectedIndex);
which then calls function onResultSummaryItemClick(idx) { // alert(idx);
map.infoWindow.select(idx); // alert("index:"+map.infoWindow.selectedIndex);
var extent = map.infoWindow.getSelectedFeature().geometry.getExtent();
if (!extent) { // alert(map.infoWindow.getSelectedFeature()+":"+map.infoWindow.getSelectedFeature().geometry);
map.centerAndZoom(map.infoWindow.getSelectedFeature().geometry, 18);
}
else
{
map.setExtent(extent, true);
}
However the selected feature highlight symbol is ending up first in the list, instead of last, so it is drawing UNDER the feature, and therefore isnt appearing highlighted. If i click the feature, the highlight moves to the bottom of the list, and draws correctly. PATHS after hitting next PATHS after clicking to select any ideas? Kelly Hutchins Derek Swingley Jonathan Uihlein
... View more
08-19-2014
07:53 AM
|
0
|
13
|
5296
|
|
POST
|
I dont see an attachment. It looks like any hooking into the tap event, or disabling mapnav (to prevent panning) seems to break it. I will try and post a sample
... View more
08-08-2014
12:53 PM
|
0
|
1
|
1056
|
|
POST
|
How do you specify the click location with map.emit("click", { bubbles: true, cancelable: true });
... View more
08-08-2014
09:17 AM
|
1
|
3
|
6925
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-22-2014 08:35 AM | |
| 1 | 05-02-2012 04:56 AM | |
| 1 | 10-29-2021 07:40 AM | |
| 1 | 10-28-2021 05:26 AM | |
| 1 | 07-17-2012 08:48 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-01-2022
02:00 PM
|