node-mapnik icon indicating copy to clipboard operation
node-mapnik copied to clipboard

Marker rendering clipped

Open everton1 opened this issue 10 years ago • 3 comments

Hi, I was trying to render some points (attached bellow), but the marker was rendering cutted. I try with mapnik 2.0.3 and 3.0.0. I was attaching one file to see, and some links to reproduce the experiment.

1 - antenas.geojson : should be putted in root of node server project (http://liveweave.com/2FJglb) 2 - The project of sample server (app.js) (http://liveweave.com/irl8CG) 3 - stylesheet.xml (http://liveweave.com/ZUuwIS (use the css area in this case)) 4 - A HTML to consume the map of server. (maybe its necessary to configure the IP) (http://liveweave.com/51tYbg)

To test, download the server project, execute the following command in a terminal: $ git clone [email protected]:mapnik/node-mapnik-sample-code.git $ cd node-mapnik-sample-code

paste the antenas.geojson and stylesheet.xml on this folder replace the tile/pool/app.js by app.js in the link

On the root folder, now, execute: npm install npm install mapnik npm install generic-pool node tile/pool/app.js ./stylesheet.xml 8586

open the HTML file in the brownser. The initial position and zoom is fixed to point the problem.

I already have tested to use those parameters in the stylesheet.xml file: shield-clip:false / avoid-edges:true / marker-clip:false

I try to increase the bufferSize on server map creation tile, too. Nothing works.

After applly bufferSize greater than 16, it does not affect the map visual.

Ps. I use liveweave to create the links, so ever copy the content of HTML part in the tool.

foto

everton1 avatar Jul 21 '15 21:07 everton1

Have you tried playing with the extent of your map, I see you set it to the bounding box of the tile requested.

flippmoke avatar Jul 21 '15 21:07 flippmoke

Doh, sorry thats not going to fix anything. Having a brain fart kind of day.

flippmoke avatar Jul 21 '15 21:07 flippmoke

@everton1 https://github.com/mapnik/mapnik/issues/2577

flippmoke avatar Jul 21 '15 21:07 flippmoke