Code Monkey home page Code Monkey logo

wenjunjie287 / mapgraphics Goto Github PK

View Code? Open in Web Editor NEW

This project forked from raptorswing/mapgraphics

0.0 0.0 0.0 248 KB

A tile-based "slippy map" library written in/for C++/Qt. It's meant to enable C++/Qt developers to easily add nice, interactive maps to their applications. Supports zooming, rotating, interactive custom map objects, transparency, etc. It is a Qt map widget that can use tiles from MapQuest, Openstreetmap, or a custom source you define.

License: Other

C++ 98.11% C 0.15% QMake 1.73%

mapgraphics's Introduction

MapGraphics

A tile-based "slippy map" library written in/for C++/Qt. BSD licensed (see LICENSE). It's meant to enable C++/Qt developers to easily add nice, interactive maps to their applications.

Building

Its only dependency is Qt. If you're on a system with recent Qt libraries and a good C++ compiler, this should build.

If you're using QtCreator, just open the .pro file and build it. If you're on a command line, run qmake on the .pro file, then make.

If you're using Visual Studio or Eclipse or some other C++ IDE, google around for instructions on building Qt projects with your IDE.

Examples

The included test app provides a simple test/example application that shows a map with tiles loaded dynamically from OpenStreetMap (note: if you use the TestApp code as more than a dev/test example, please use your own tile server and don't abuse OSM's tile server).

The TestApp also renders a 5km radius red circle to demonstrate that objects can be added on top of the map. The circle can be clicked, dragged, and deleted. More complicated object interactions are possible, but not demonstrated in this TestApp. See https://github.com/raptorswing/FlightPlanner as an example of an application that provides more complicated interactions with objects on the map.

mapgraphics's People

Contributors

raptorswing avatar

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.