slav123 / sprymap Goto Github PK
View Code? Open in Web Editor NEWJavaScript click and drag widget
Home Page: http://demo.spidersoft.com.au/sprymap/index.html
JavaScript click and drag widget
Home Page: http://demo.spidersoft.com.au/sprymap/index.html
Hi there,
I have another issue. This script doesn't work on mobile devices. Do you work out something?
Thanks in advance
Hi there,
just a question. Did you have a way to insert some clickable area on the map?
For example I want to insert on two different city on your map the possibility for a user to click and open a link.
Thank you in advance
I realize that the intent of SpryMap is to enable scrolling by dragging the content, but I like to show the vertical and horizontal scrollbars using css overflow: auto
as a way of indicating where the displayed content is positioned within the overall image, but dragging the image doesn't accurately update the respective scrollbar(s), and even stops scrolling before reaching the edge. Is there a newer version than 2 (spryMap-2.js) that I found in this getub page. By the way, I really like that this solution is so simple to use and doesn't require jQuery.
The sprymap could not worked currently in IE8 because the e.preventDefault().how can i solve this problem
In firefox I have to click, drag (a short distance) mouseup then move the mouse to get the intended behavior. Dragging does an image drag some default behavior from the browser.
If I add this:
$(document).on("dragstart", function(e) {
if (e.target.nodeName.toUpperCase() == "IMG") {
return false;
}
});
it works great.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.