GithubHelp home page GithubHelp logo

Comments (7)

garrettrayj avatar garrettrayj commented on May 29, 2024 1

Paths for test images were missing a directory separator. 🤦‍♂️

I got Travis (Ubuntu Trusty) back to building successfully so you might pull and try again. Thanks!

from php7-mapnik.

garrettrayj avatar garrettrayj commented on May 29, 2024 1

New functionality has been merged into master and released with 1.2.0. Make sure and checkout the new API docs too. Thank you for creating the issue!

from php7-mapnik.

garrettrayj avatar garrettrayj commented on May 29, 2024

Mapnik has functionality to get a map's extent and scale, but it is not implemented in the extension yet. I also suspect that being able to change the aspect fix mode (https://github.com/mapnik/mapnik/wiki/Aspect-Fix-Mode) would be helpful.

Relevant Mapnik methods:

Let me know if you want to tackle implementation. Otherwise I'll work up something over the next week or two.

from php7-mapnik.

africanrhino avatar africanrhino commented on May 29, 2024

I wish I could. not very handy with c. I am at "hello world" level. I think those mapnik methods would be very handy. am trying to implement it via the !bbox! intersect thing but its not very flexible nor particularly useful. perusing the map.hpp, remove_style might also be very useful in the long run. I suspect this project will mostly be used to generate static maps, at least that's how i'm using it and managing layers and styles is big one for that. the way i am doing it is loading the xml file and altering the style and layer then send it via loadXmlString().

great project, very useful to have this available native in php7+ thank you very much for the effort so far!

from php7-mapnik.

garrettrayj avatar garrettrayj commented on May 29, 2024

The discussed methods are now available in the develop branch. There is some house keeping and documentation work I want to get in, so a tagged release is still a couple weeks out. Until then, the map class tests offer the best look into what's available.

from php7-mapnik.

africanrhino avatar africanrhino commented on May 29, 2024

great enhancements , good to see you pulled though a lot more than i thought you were. I've tried to compile it but it to be failing on

make test
@ FAIL \Mapnik\Image [tests/image.phpt]

i didn't get any compile errors. could it be a libgd version thing? the master branch still compiles and passes the tests.

from php7-mapnik.

africanrhino avatar africanrhino commented on May 29, 2024

ok , all is working , new functions are sweet! :)

$class_methods = get_class_methods($map);
echo print_r($class_methods,true);
gives ->

Array
(
[0] => __construct
[1] => loadXmlFile
[2] => loadXmlString
[3] => zoom
[4] => zoomAll
[5] => pan
[6] => panAndZoom
[7] => zoomToBox
[8] => registerFonts
[9] => getBasePath
[10] => setBasePath
[11] => getWidth
[12] => setWidth
[13] => getHeight
[14] => setHeight
[15] => resize
[16] => getSrs
[17] => setSrs
[18] => getBackgroundImage
[19] => setBackgroundImage
[20] => getBackgroundImageOpacity
[21] => setBackgroundImageOpacity
[22] => getMaximumExtent
[23] => setMaximumExtent
[24] => resetMaximumExtent
[25] => getCurrentExtent
[26] => getBufferSize
[27] => setBufferSize
[28] => getBufferedExtent
[29] => getScale
[30] => getScaleDenominator
[31] => countLayers
[32] => removeStyle
[33] => removeAll
[34] => getAspectFixMode
[35] => setAspectFixMode
)

from php7-mapnik.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.