Tag Info

New answers tagged

1

Here is the code in C++ based on the post here : How to set Marker Line symbol for QgsVectorLayer by using Python? thanks to Durga for the link in his answer. So here is the code in c++ to change the style of the border of a polygon, in this exemple the color is white and the penstyle is dashed. QgsSymbolLayerV2Registry * MyRegistry = ...


2

Refer this post in the SE ..it is for python.Same method can be used for C++


1

Here is the solution,I finally understand why In fact a defaultSymbol is been created when I instanciate newsymbol , so instead of do an appendSymbolLayer I had to delete the default symbolLayer first and insert the new one to replace it The code is now : for(int i = 0 ; i < lListValue.size() ; i++) { QgsSymbolV2* newsymbol = ...


1

Try this script. It uses render_list utility in proper way and converts geo coordinates (WGS-84) to tile coordinates on several zoom levels and generates many tiles in one round. For example: ./render_list_geo.pl -n 2 -z 6 -Z 15 -x 21.8 -X 40.7 -y 44.03 -Y 52.6


2

Try to call map.invalidateSize() after changing the map div's size/visibility: http://leafletjs.com/reference.html#map-set-methods



Top 50 recent answers are included