Mapbox style zoom over 22 - styles

I know that with custom tilesets it is possible to zoom over 22 (i have several tilesets configured to be zoomed at 22 and more, working perfectly).
But i can't seem to figure out where i can have one of mapbox's styles zoomables over the magic 22 mark.
I have tried with tippecanoe but styles are not tilesets, therefore not doable with what you can download over mapbox studio styles.
Anyone firgured out how to do it ?
Regards,
Alex

Related

Why fonts in Qt are appearing blurry or pixelated?

All my fonts are appearing pixelated, so I used AntiAliasing but it isn't helping out. As you can see the pixelated font in the image itself:
This is the code I am currently using:
butt1 = QtWidgets.QLabel("""Scrappr""")
font = QtGui.QFont()
font.setStyleStrategy(QtGui.QFont.PreferAntialias)
font.setPixelSize(22)
font.setFamily('Segoe UI Bold')
butt1.setFont(QtGui.QFont(font))
I tried different solutions on SO, qtforums etc but nothing works for me :(
I tried:
Different combinations of ClearType text but It didn't work out as, by default all the text appears good on windows and chrome but with Qt only, it becomes pixelated.
Changing windows aero theme to classic one...
But none of them helped.
Here are My PC Specs:
windows: 7 ultimate
PySide2 version: 5.14.2.1
Resolution: 1360 X 768
I'm using BrownPro font and the texts were blurry at all resolutions, but much more evident at low resolutions.
I was able to solve the issue by setting the hinting preference for the font to: PreferNoHinting. Applying it at the application level, fixes the issue everywhere.
Here is the documentation: https://doc.qt.io/qt-5/qfont.html#HintingPreference-enum
And here is the code I used:
QFontDatabase::addApplicationFont(":/fonts/BrownPro-Bold.ttf");
QFontDatabase::addApplicationFont(":/fonts/BrownPro-Regular.ttf");
QFontDatabase::addApplicationFont(":/fonts/BrownPro-Light.ttf");
QFont brown_pro_font("BrownPro");
brown_pro_font.setHintingPreference(QFont::HintingPreference::PreferNoHinting); //This line did the trick
QApplication::setFont(brown_pro_font);
Try to see the fonts used by PyQt5:
import PyQt5
from pyQt5 import QtGui
dir(QtGui.QFont)
the result will show all you need for QFond and the fonts can be used:
[..., 'Helvetica',...,'SansSerif',..., 'Serif',..., 'Times', ...
You can try to add your custom fonts but you need to test each font.
For example, the documentation tells us:
In Windows a request for the “Courier” font is automatically changed to “Courier New”, an improved version of Courier that allows for smooth scaling. The older “Courier” bitmap font can be selected by setting the PreferBitmap style strategy (see setStyleStrategy() ).
Once a font is found, the remaining attributes are matched in order of priority:
fixedPitch()
pointSize() (see below)
weight()
style()
I happen to work with Qt last year and i used qml for building the UI part of my application.
Qt itself prefers us to use qml for building UI, since they have written a UI engine that renders everything better compared to the old engines.
In case of PyQt you are using the python only approach which is only not usually recommended, i am not saying that the qml version is pixel perfect. it still works bad at drawing curves (but that is not the stuff we usually require). As far as your problem is concerned qml will work fine for you (it has much better text rendering).
You might struggle a bit finding the learning resource for qml. But at least give it a shot and yes it is easier much easier than Python only approach.

livecode - using mergPop with fullscreenmode?

Anyone using mergPop with fullscreenmode?
With this: set the fullscreenmode of me to letterbox
the popover does not locate properly. When I try adding the rect of the button it seems to have no effect. Testing in simulator with iPad simulation.
MergPop works great without setting fullscreenmode but I need fullscreenmode.
Unfortunately there's no API in the externals SDK yet that allows the translation of LiveCode points to UIKit points if you use a fullscreenmode so it's not possible for externals to support these modes properly yet. If you can work out exactly how much of a letterbox you have with the given aspect ratio then you may be able to calculate an appropriate rect for the optional from rect parameter.

Strange colors in Mapquest Open Aerial tiles

I have previously used Mapquest Open Arial tiles without any trouble. However, after the last server change I get tiles with weird colors. Their example tile still looks fine:
http://otile1.mqcdn.com/tiles/1.0.0/sat/15/5240/12661.jpg
But, the ones I'm trying to download look like this:
http://otile1.mqcdn.com/tiles/1.0.0/sat/13/1927/3385.jpg
The most striking problem is that the vegetation is red.
Does anyone know what's causing this or perhaps how I can correct the colors (I have tried playing around with them a bit in gimp but I couldn't find a solution)?
Disclaimer: I work at MapQuest. Unfortunately there was bad data in the last round of open aerial imagery updates that caused some areas (we've noticed Texas) to be seeded with discoloration from zoom level 12 and up. We've got this on our backlog, but I don't have an estimate as to when this issue will be resolved. Thanks for your interest in our Open Tiles!

google maps: hide labels on the fly + infoBubble masive use + background for streetview panorama,

I am using the google maps and place around 800 markers from a db...
Now I have several question for the fine tuning of that map...
http://camodesign.de/stickermap/geomap.php
I am using a styled map - now I'd like to apply a button to hide/show the labels for streets etc... but when I set a style via "map.setOptions({styles: MyStylesArrayShowLabel});" that kills all my markers that have a already been placed. Is there a way to set the style on the fly without destroying the markers?
I have set a background for the map via "mapOptions" to avoid those ugly grey tiles. Is there a way to do this for the streetview pano too?
I had set a full screen panorama of 100% width and height but the streetview seems only
to use 60% even when the rest of the screen show grey. Here I don't really have a clue - is it a bug just on my browser?
(+) was trying to use the info bubble instead of the info window for more style
possibilities but the script was hanging and working too long.. after minutes it put out the result correct... seems the bubble had some problems on massive marker use?
had any one similar experiences with it?
Glad for any other suggestions?
(all markers [excluded the home marker/infowindow] are generated from a db via SQL and PHP)

Advanced CSS Circles

I'm trying to make 3 different circles to my website. I don't want to insert it as a graphic/image file. So I've been trying to achieve it using CSS3, but I can't really work my fingers around it.
What will it look like?
I have uploaded a picture of what I'm trying to achieve at: www.sp34k.com/etc/circles.jpg
I can't really show the code I've been trying to use to achieve this, as it all looks totally weird and nothing floats currectly.
What I've tried
What I've tried is to make 3 circles with position absolute and then use % (percentage) to determine the width of the colored parts, but I can't twist my mind around how it should be set up.
Any suggestions is appreciated,
Mike
Here is a simple try of me to achieve the effect you want:
DEMO
edit: css-only solution
It can be easily animated with javascript or keyframes. Arbitrary content would go into the inner div. To change the percentage, simply adjust the angle of the pseudo-elements.
With a little more effort this could be easily refined I guess;)
Note: the transform has the webkit-prefix, so it works only in chrome/safari - to see it in firefox or other browsers, you need to change the prefix.
P.S. I will animate it when I'm home from work.
Good one by Christoph but he is using SASS/SCSS which are comparatively slow then normal CSS because they have to be converted to CSS before browser render it so I have have a different Solution for you
try this fiddle

Resources