POST
|
Hello Dan, Computers are fast, I would not worry about the recalculation... Still, You can calc one time the x,y of label point and put it in the layer. Then you don't need to recalculate. Another idea is to check if cetroid or center falls inside the polygon and only if not then calc label point.
... View more
08-26-2018
09:17 PM
|
0
|
0
|
1472
|
POST
|
BTW a live sample : https://gisn.tel-aviv.gov.il/iView2js/beta4/index.aspx Measure area and the value will be displayed at the best location.
... View more
08-22-2018
07:00 AM
|
0
|
0
|
1472
|
POST
|
Hi, I'm using this https://github.com/GeorgeGardiner/LabelPoint Works well. Oren
... View more
08-22-2018
06:12 AM
|
1
|
1
|
1472
|
POST
|
Hi, Please try: myMapView.on("click", function (evt) {
var screenPoint = {
x: evt.x,
y: evt.y
};
myMapView.hitTest(screenPoint).then(function (response) {
$.each(response.results, function (index, re) {
var id = re.graphic.layer.id;
if (id === "graphicslayername") {
//do something
}
});
});
});
... View more
07-25-2018
12:08 PM
|
1
|
0
|
688
|
POST
|
I have managed to discover that this is a conflict between the api and 3rd party js. remove the geoxml3.js script and it works add it and it fails version 3.xx https://jsfiddle.net/orengal/k6ssdqcL version 4.xx https://jsfiddle.net/orengal/ph7oenz7 I am using the workaround of Joel Bennet on both the APIS. Good job Joel!
... View more
04-14-2018
09:11 PM
|
0
|
0
|
317
|
POST
|
one line:$("#myLayerId_layer").find('text').css('text-shadow', 'black 0.1em 0.1em 0.2em');
... View more
01-06-2015
09:37 AM
|
1
|
0
|
1003
|
POST
|
Run on all texts in the graphic layer and add shadow css to them: var texts = $("#myGraphicsLayerName text"); $.each(texts, function(index, text) { $(text).css('text-shadow', 'black 0.1em 0.1em 0.2em'); } }); Oren
... View more
01-06-2015
01:36 AM
|
2
|
1
|
1003
|
POST
|
My solution was similar: $(".esriScalebarRuler").parent().css("background-color", "white"); $(".esriScalebarRuler").parent().css('padding-left', '15px'); $(".esriScalebarRuler").parent().css('padding-right', '35px'); $(".esriScalebarRuler").parent().css('padding-top', '12px'); $(".esriScalebarRuler").parent().css('padding-bottom', '12px'); This was good for scalebar in right bottom.
... View more
12-28-2013
06:18 AM
|
0
|
1
|
902
|
POST
|
I don't understand what is 'fake traffic direction "arrows"' please contact me directly (I did not create the MXD). oren.gal at gmail Thanks
... View more
10-24-2013
12:45 AM
|
0
|
0
|
424
|
POST
|
update: It happens only with the new layerswipe.js. when I returned the original 3.7 it's not happening.
... View more
10-23-2013
08:49 PM
|
0
|
0
|
424
|
POST
|
Thanks Matt, but the result remains. I will make a small project and send you with Esri services. Oren
... View more
10-23-2013
08:35 PM
|
0
|
0
|
770
|
POST
|
Hi Matt, I have another minor minor issue: when I press the first time the toggle button, the splitter appears but the background is not changed. Only when I start to move the splitter right or left, only then the background changes. Can you please check it? Thanks, Oren http://gisn.tel-aviv.gov.il/iview2js/
... View more
10-21-2013
05:40 AM
|
0
|
0
|
770
|
POST
|
Didn't remove a thing. just copied it. Works like a charm. Thanks again Matt! http://gisn.tel-aviv.gov.il/iview2js/index.aspx (with fix)
... View more
10-17-2013
08:08 AM
|
0
|
0
|
770
|
Title | Kudos | Posted |
---|---|---|
1 | 01-06-2015 09:37 AM | |
1 | 07-25-2018 12:08 PM | |
1 | 08-22-2018 06:12 AM | |
2 | 01-06-2015 01:36 AM |
Online Status |
Offline
|
Date Last Visited |
09-21-2023
05:54 AM
|