OpenLayers 3 keeps showing tile from lower zoom level - openlayers-3

in my application, developed with OpenLayers 3.6.0, I have the problem, that after zooming in at the edge of the area, for which tiles exist, a part of a line feature seems to show the blown up tile from the previous zoom level.
You should be able to reproduce this by entering the following URL in any browser and zooming in using the plus button:
http://www.basemap.at/application/index.html#{"center":[1914116.9361742584,6087116.001148832],"zoom":14,"rotation":0,"layers":"1000000000"}
I am not sure, if this is a bug in OpenLayers. Therefore, before opening an issue, I would like to ask, if another developer has already seen the same problem and has somehow solved it.
Best Regards,
Gerhard

The problem in your application is an insufficient tile grid definition. The server responds with 404 errors for unavailable tiles. By adding the extent of your tile set to your tile grid definition, you can avoid 404 tiles, and the issue should go away.
I have created a JSFiddle to show you the correct configuration for your application. It boils down to a tileGrid definition like this:
tileGrid: new ol.tilegrid.WMTS({
origin: [-20037508.3428, 20037508.3428],
extent: [977649.9582335392, 5838029.951202585, 1913529.9492146818, 6281289.924879572],
resolutions: [156543.03392811998, 78271.51696419998, 39135.758481959994, 19567.879241008, 9783.939620504, 4891.969810252, 2445.984905126, 1222.9924525644, 611.4962262807999, 305.74811314039994, 152.87405657047998, 76.43702828523999, 38.21851414248, 19.109257071295996, 9.554628535647998, 4.777314267823999, 2.3886571339119995, 1.1943285669559998, 0.5971642834779999, 0.29858214174039993],
matrixIds: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19"]
})

Related

Highmaps won't display my GeoJSON lake layer

I don't succeed in adding a final layer to my Highmaps. I have already the ground map and some additional layers. But the lake layer does not succeed to be displayed. Why is that? It does load into QGIS correctly.
Truth is, by the way, that I haven't understood the difference between calling a GeoJSON file like this (which works for my additional layers):
type: 'mapline',
data: Highcharts.geojson(Highcharts.maps['lakes'], 'mapline'),
or like this (which works for the ground layer):
mapData: Highcharts.maps['lakes'],
data : data,
But not sure if this is relevant here. It doesn't work the one or the other way. Here is a fiddle.
Thanks for any hints.
The problem is caused by one of the geometry which has null value:
{
"type": "Feature",
"geometry": null,
"properties": {
"OBJECTID": 13,
"NAME": "Lake St. Martin",
"Shape_Leng": 1.1857234063,
"Shape_Area": 0.0450760801303
}
}
After removing the incorrect item everything works as it should. As to your second question: please also check chart.map property: https://api.highcharts.com/highmaps/chart.map and a precise description here: https://www.highcharts.com/forum/viewtopic.php?t=39602
Live demo: https://jsfiddle.net/BlackLabel/ga396zwo/
Docs: https://www.highcharts.com/docs/maps/custom-geojson-maps
API Reference:
https://api.highcharts.com/class-reference/Highcharts#.geojson
https://api.highcharts.com/highmaps/series.mapline.mapData
https://api.highcharts.com/highmaps/series.mapline.data

Slack Section Block: Markdown Preformatted Overflow Issue with long strings

When using the Lego... I mean Block Kit builder, I need to send some pre-formatted data using markdown's "```" syntax, the problem is when it encounters a long un-spaced strings (such as a URL) the format breaks when displaying on slack. This is isolated to the block kit builder as sending the message through the app/web app shows up fine.
I tried using the verbatim property, however that did not work.
First block displays the error, second block displays correctly due to spaces being present and no long-words
[
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "```I_love_oat_cake_croissant_jujubes_tiramisu_pudding_pastry_sugar_plum_I_love._Apple_pie_powder_bear_claw_croissant_candy_muffin_gummi_bears.```"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "```I love oat cake croissant jujubes tiramisu pudding pastry sugar plum I love. Apple pie powder bear claw croissant candy muffin gummi bears.```"
}
}
]
I expected it to mimic what a user's input would display when entering data on the app, which is breaking on long words when necessary, but instead the block is getting shifted off to the left and cutting off some of the data.
Here is an example in both the builder and the application
Currently as of 4/15: This is a known bug so all I can do is wait. They do not offer a public facing site that lists known issues like this, but I have emailed them to track the bug and hopefully if it gets fixed soon I will update this answer.

How to create a composite caption on Neo4j Grass style file?

For example,
"node.Person": {
"color": "#FF756E",
"border-color": "#E06760",
"text-color-internal": "#FFFFFF",
"caption": "{name}"
}
I want the "Person" to be displayed as the label of the node, and "name" and "age" to be displayed as the attributes of the node. Currently, only 'name' is displayed as the caption.
How to change the code above?
EDITED:
Neo4j people, how did you generate the graphs in the book? Thank you. This is one example below.
You can do it by editing the styles. Do this by typing ":style" to the neo browser UI, copy-paste the styles to text editor and just add the fields to the caption in curly brackets e.g.
"node.Person": {
"defaultCaption": "<id>",
"diameter": "50px",
"color": "#A5ABB6",
"border-color": "#9AA1AC",
"text-color-internal": "#FFFFFF",
"caption": "{name} {age}"
}
Would result in showing Person entities with name and age on them.
As I said in the comments of my answer its not possible. My anwser is as close as you can get. "node.MESSAGE": { "caption":"Message name:{NAME}" }. You can only write directly onto the node. I recommend to use different colours for different labels

Umbraco - Add spacing under element

The question might seem stupid. but i really can't find what i should type on the "Add spacing under element" text box to achieve the spacing from the CMS and not hard-coded.
In an element properties you can see this window:
Umbraco version 7.2.5 assembly: 1.0.5610.18894
Free License for now but planning to get one this week.
Okay I got your point. You are using Grid Layout.
By default Umbraco Grid layout datatype have setting class and styling background image as below
This can be found in Developer -> Datatypes - > datatype you have created with "Grid Layout", You can find data type name in Setting->Document types -> Name of home doc type -> generic properties
You can change settings and styles by clicking edit, it contains json data as below. This is default value
For setting
[
{
"label": "Class",
"description": "Set a css class",
"key": "class",
"view": "textstring"
}
]
For Style
[
{
"label": "Set a background image",
"description": "Set a row background",
"key": "background-image",
"view": "imagepicker",
"modifier": "url({0})"
}
]
Get full details on link
Now your scenario.
I think according to description, you have used this to add padding-bottom or margin-bottom style on the element. So you must use values like "20px" or "10px". Try only numbers like "10" if this don't work

Add extra info to tooltip for specific bar in nvd3 multiBarChart

I use django with django-nvd3 to generate some charts. I'am not good in javascript at all.
I have this example (java script was created by django-nvd3)
http://jsfiddle.net/rkorzen/87WVr/2/
I want to add extra info to tooltip (if this extra info exist for my bar).
Data is composed of the blocks:
{"values": [{"y": 19, "x": "Checkpoint 1", "info":"ABDG"},
{"y": 17, "x": "Checkpoint 2"}],
"key": "Very good", "yAxis": "1"
},
in this point I want to ad info "ABDG" to tooltip for bar x="Checkpoint 1" and y=19
But don't have idea how :(
I'am not sure if django-nvd3 have some options for this. So decided to ask about js.
Maybe someone Can help:)
Try using extra dict :
'chartdata': {
'x' : 'your_x_axis data',
'name1': 'Somename',
'y1': 'y_axis_data' ,
'extra1': {
"tooltip": {"y_start": "", "y_end": " cal"},
},
}

Resources