Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example of using mappa without p5.js #37

Open
nPellejero opened this issue Sep 3, 2019 · 0 comments
Open

Example of using mappa without p5.js #37

nPellejero opened this issue Sep 3, 2019 · 0 comments

Comments

@nPellejero
Copy link

Hi, I am trying to use mappa using plain javascript canvas, without using p5.js, as I can't follow the setup and draw pattern due to some restrictions. I am running into some issues, specially related to many of the functions of leaflet used after mappa.tileMap('leaflet'); not working, or giving errors.

Would you mind to upload an example using plain canvas, or another canvas plugin differen from p5.js ?
Also, which API version of Leaflet should I use ? For example I am using these function to disable zoom control on my map, and they work with plain leaflet, but they don't work with mappa:

map.touchZoom.disable();
map.doubleClickZoom.disable();
map.scrollWheelZoom.disable();
map.boxZoom.disable();
map.keyboard.disable();
$(".leaflet-control-zoom").css("visibility", "hidden");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant