Comments (20)
I figured out what that code does. If you comment it out the map retains the selected color on any region you click rather than reverting back to the unselected fill color. Sucks that IE8 craps out on that.
from jqvmap.
I replaced it with this for now:
if(jQuery.browser.msie) {
} else {
map.countries[key].currentFillColor = map.countries[key].getOriginalFill();
map.countries[key].setFill(map.countries[key].getOriginalFill());
}
from jqvmap.
@sonicparke Any way you can make these changes and do a pull request? I can test them and merge them into the code.
from jqvmap.
Sorry I'm just now getting back to this. I would like to do a pull request if you still need it but I'm a github noob and apparently can't figure out how to do it.
from jqvmap.
hi, is-it possible to know how do you succed to use jqvmap in IE8 ?
I need your solution, i'm a little bite desperate cause' it works great in Firefox and Chrome but in the firme, people use IE8...
Thanks,
from jqvmap.
Which problem are you having in IE8? Is it the one in the original post?
from jqvmap.
my map isn't show... just the tooltips
With the compatibility mode of IE8, my map is showing but it's just horrible to see it, the Vector looks like random...
Do you have an idea to solve it ?
from jqvmap.
I think I had that problem but can't remember what it was. Maybe an extra comma and the end of a JSON array? Do you have a url I can look at?
from jqvmap.
yes : it's in development for the moment
from jqvmap.
Is this what you get? http://img.skitch.com/20121011-dyscp9wubpn7u46hypyjmue973.png
from jqvmap.
Yes that's it, normal issue ? what's wrong ? It's perfect under chrome for example
from jqvmap.
I got a response and a fix from bjornd who wrote jvectormap which jqvmap is based on. Here is the thread on that github repo. bjornd/jvectormap#23 (comment) The fix is listed as issue "#23 Path component string should be trimmed before processing" posted by bjornd in that thread. That should fix it.
from jqvmap.
I don't understand what i have to do, last solution is to redevelop my map with jvectormap but i don't Know where i can find vector's list of all department.
Thanks a lot for your help
from jqvmap.
OK. Go here: bjornd/jvectormap@aabe3c9
Search your 'jquery.vmap.js' file with line highlighted in Red (it's this one):
coords = coords.replace(/(\d)-/g, '$1,-').replace(/\s+/g, ',').split(',');
Replace it with the lines highlighted in Green (these):
coords = coords.replace(/(\d)-/g, '$1,-')
.replace(/^\s+/g, '')
.replace(/\s+$/g, '')
.replace(/\s+/g, ',').split(',');
That should fix it for you.
from jqvmap.
ah ah you saved my ass, you can't imagine,
Thank you very very much,
By the way, sorry for my English if it's so bad.
from jqvmap.
No problem. Your English is fine. Glad it's working for you now.
from jqvmap.
Hi Sonicparke!
I just tried your solution but doesn't works for me. My map looks still random...
What things I have to do to get the map look's better?
Thanks
from jqvmap.
Sorry!
I forgot things... I did a mistake in my files!
Thoses lines works perctly!
Thanks!
from jqvmap.
Glad you got it working.
from jqvmap.
Could you take a look at my code on http://www.nsworld.org/development in IE8 and tell me what's wrong. I can't figure out what's the problem. It works perfectly in any other browser except Ie and more then 35% of our client visit our website with IE8 & 7 :/
from jqvmap.
Related Issues (20)
- List of selections as region labels, not codes
- The map new regions france no working HOT 2
- Map does not plot markers
- No toolitip for countries
- pins or labels shifted to right and bottom on ukraine map HOT 1
- cannot import name 'EvaluableParseManager'
- Country vectors for Singapore and Hongkong
- Add Singapore
- 'selectedRegions' option does not work with double-quoted input: ["MX"]
- How to display Washington DC on the map
- Destroy Map?
- Distinguish the areas of northern India/Kashmir and Tibet
- jquery.vmap.usa.counties.js is missing Whatcom County, WA
- Label Obstruct small states in USA map
- How to disable Pinch zoom at mobile device? HOT 2
- Austria causes crash
- Is this project maintenance?
- Is it possible to select only a province?
- dynamic set selectedRegions
- any alternative in vanilla javascript
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jqvmap.