Code Monkey home page Code Monkey logo

jqvmap's People

Contributors

10bestdesign avatar aa-lubis avatar adeelnawaz avatar alexbogias avatar andyburke avatar benjamincorey avatar bfallert avatar dariygray avatar der-on avatar dflemstr avatar dominiklaube avatar elmeerr avatar falkendk avatar jantimon avatar jbafford avatar jcstone avatar kathmann avatar kenshino avatar mahmoud-eskandari avatar manifestinteractive avatar marcdepoe avatar mohammadyounes avatar ozdemirburak avatar peter-schmalfeldt avatar randyhoulahan avatar reddine avatar rudyleclercq avatar sonnydg avatar username-af avatar wallin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jqvmap's Issues

Setting countries as disabled/unselectable

It's often the case that data or interaction/functionaliy is only available for some countries, in which case one would want to specify which ones (i.e. a whitelist) and disable all others, so that they are still displayed but rendered some other way/colour/style.

This doesn't appear to be possible at present, please consider adding support for this?

Redraw map

Currently I do not see a way to redraw a map. For instance, if I load a map to a hidden element, when I show the element the map is not visible, the width and height are set to zero. If i manually set the width and height, the scale of the map is extremely small.

A function call to redraw the map when the element is show would be extremely useful, or am I overlooking something.

Possible solutions:
1.) add options for width and height inside the params
2.) My solution (requires you to add data attributes to the container of width and height):
=== the js -- starts at line 421 of lastest jquery.vmap.js ===


    if(params.container.width() == 0){
        this.width = params.container.attr('data-width');
    }else{
        this.width = params.container.width();
    }   
    
    if(params.container.height() == 0){
        this.height = params.container.attr('data-height');
    }else{
        this.height = params.container.height();
    }

== the html --missing "< >" due to editor -- ==


div id="vmap" data-width="960" data-height="525"> /div>"

Great plugin. Hope this helps someone

onRegionClick fires when dragging

onRegionClick fires and a region is selected when dragging, but when you try to drag the map it isn't really a 'click' on a region.

No Tooltips in IE8

I'm noticing once I get the maps actually showing in IE8 with jboelen's hack that none of the Tooltips are showing.

IE8 also throws an error onRegionClick at line 532. Stating Object doesn't support this property or method. The following doesn't seem to play nice with IE8?

map.countries[key].currentFillColor = map.countries[key].getOriginalFill();
    map.countries[key].setFill(map.countries[key].getOriginalFill());

Error in Europe map data

Just to mention that there's a small error towards the end of jquery.vmap.europe.js: Suriname is mentioned with SR iso code, while it should be Serbia with RS.

pen street map

anyway to integrate with open street map ?

The idea would be to pull the data they have as needed in a azy loading design pattern.

Is there a way to retrieve colors range in legend?

Hi all,

I would like to know if there is a way to retrieve calculated colors and the range applied for each of them.
This is to generate a legend next to the map with the range associated to each color.

Thank you
Thierry

hoverColors ?

is it possible to do "hoverColors" as in "Colors"

i tried something like this : " hoverColors: {us: '#0000ff', fr: 'yellow'}," but does not work.

Any ideas ?

maybe in onRegionOver ?

IE8 bug rendering map

I'm using the map world_en, and evrything works perfectly in every browser except IE8. The problem in IE8 is that when i try to see the map, the map load perfectly with the specific countries that I specify to be a certain color and the rest not, but when this is finishing loading into the page, there is a second map that load over it, all white and hide the one that i need. I checked the code and it seems that IE8 load to times the rvml code. can someone help me?

Inserting map clicks into History?

Hi there,

Just wondering if there's any simple way to insert into the browsers history when a user clicks on a map region?

I've managed to alter the map so that when a region is clicked, it goes to a new URL, but that doesn't get tracked in the history...

I've been looking at all sorts of jquery history plugins, but can't quite figure out how to combine the two!

Any help would be much appreciated!

onRegionClick error in IE8

I setup the onRegionClick option to open another div on click and it worked great in Chrome, FF, IE9. But IE8 gave me this error:

Object doesn't support this property or method jquery.vmap.js, line 523 character 3

In testing I commented out lines 523 & 524 and now IE8 seems to work fine. I'm sure they're in there for a reason so please let me know why I should put them back if I need to. But for now at least IE8 is working.

Lines 523, 524:
map.countries[key].currentFillColor = map.countries[key].getOriginalFill();
map.countries[key].setFill(map.countries[key].getOriginalFill());

Is it possible to dynamically change colour using a region name instead of code?

I have a selected list of top 5 countries. I would like to be able to dynamically change the colour of these countries on the map, after the map is created.

I basically want to be able to do this:
$('#map').vectorMap('set', 'colors', { us: '#8EE5EE' });

However instead of 'us' I'd like to use 'United States'.

Either that or else some way of retrieving the code using the region.

Thanks in advance

usable map editor

I found a rewiew of jqvmap on some site that ended with a brilliant cite stating that:

"Unfortunately the site of plugin developers does not explain how to make your custom maps for other countries."

And actually it describes a huge lack of well documented map creation process. Are you planning to fix this area?

Differences to jVectorMap

The last weeks i had to decide, whether to use jVectorMap or jqvmap. I had no idea, which of both are "better", so i decided to use the original project.

So... Could you state out, in the README-file, what you made different in this project than the developer of jVectorMap? Perhaps what your project is able to handle and jVectorMap not.

Declarative support for choropleth breakpoints

User story

As a cartogrpher
I would like to color my maps using different statistical methods
so that I can explore and show natural patterns in data
As  visualization developer
I would like to declare breakpoints for choropleth colors
so that I can minimise the amount of procedural code required to color a map

Feature request

It would be helpful to have a choice of Jenks Natural Breaks for the classification algorithm.
http://en.wikipedia.org/wiki/Jenks_natural_breaks_optimization

References

Here is a JS implementation of the algorithm:
https://github.com/vvoovv/djeo-jenks

Here is a PHP implementation of the algorithm:
https://github.com/randomdrake/jenks

China provinces map

Hi,

Was wondering how can I create a map using jqvmap of Chinese provinces?

Thanks!

Dynamically Deselecting Regions

Need a method to deselect regions. Perhaps selectedRegion could be overloaded? Perhaps it's better to have a discrete method. E.g.:

$element.vectorMap("set", "selectedRegion", null)

Welding countries into groups/regions & zooming in to reveal countries

It's a fairly common requirement for corporate web sites that there is a map showing global corporate presence, usually first shown by region of the world, then by country within each region.

It would be great if jqvmap offered a way to do this by dynamically welding countries together into regions (by providing a mapping between region names and lists of countries within each region) and then when the region is clicked to smoothly zoom in to fill the render area with the region, and thereby also reveal the individual countries within the region.

Is there a way reset all countries color?

Is there a way to set all country colors back to their default color? Or, is there a way to set all countries to a specific color?

I tried setting it with color to no avail.

Schow names of the citys

How can i schow the name of the citys on the map (without mouseover or click, they should be shown when the map ist opened)

Click Function

Its a very easy question and I am not web professional. I need to create an Interactive Map. I am using JQVMap. Now I need to click region and it will callback an URL of the state. I am giving and function that was given as example in the site. But I dont know how to setup the link with State and URLs. Do I need to store the URLs in a JS and call from there? or I can put the URLs directly under region code. Any Sample code will be enough for me. Please let me know. It will be very helpful to me.

Markers

Is there any way to draw markers on maps ?

How do you find the real dimensions of the map ?

I want to create my own map of France, i picked this one here http://fr.wikipedia.org/wiki/Fichier:D%C3%A9partements%2Br%C3%A9gions%2Bcapitales(France).svg

i removed all the titles, the additional lines, the sea, and the others countries with Illustrator.

I saved the map in SVG. When i open it, i can read "width" and "height" wiches are the dimensions on my artboard. When i put these dimensions in the JS file with all the paths. The map is cropped... i can't see the Corsica..

So my question is, how do you find the real dimensions of the map ?

Many thanks :)

Generating map using python

Rig info:

Mac OS X 10.6.8
Python 3.2.2

Have issues creating a map, I have tried a few times in terminal and I keeps spitting back variables it doesn't like or won't run what so ever. The fallowing snippet it the command I run to attempt to create the map.

python
converter.py
mn.shp
mnmap.js
--width 900
--country_name_index 4
--where "ISO = 'USA'"
--codes_file path/to/codes-en.tsv
--insets '[{"codes": ["US-AK"], "width": 200, "left": 10, "top": 370}, {"codes": ["US-HI"], "width": 100, "left": 220, "top": 400}]'
--minimal_area 4000000
--buffer_distance -3000
--simplify_tolerance 1000
--longtitude0 10w
--name us

I apologize in advance if I'm missing something.

Destroy Map?

Is there a way to destroy a map using and event handler? I'd like to be able to dynamically load a map based on user click.

Adding CSS3 Gradient colors

Would there be a way to add in CSS3 gradients on the countries, instead of setting just a solid color in the initialize script?

how to link xml data to a country when its clicked

I have a xml file containing information (title and Url) about some countries. when i'll click a country, i would like to show the title and the url. How can i do this? how can i link a xml file and info to the map to be able to show in the page the links for the country that is clicked/selected?

Can somebody help me? I'm stuck :/

JQVMap - Setting regions as disabled/unselectable

I want to set regions in the map without data to be disabled from clicking. Is there any way to do that...I have been successful with disabling color change onRegionOver, but the same regions still responds to click (and changes color of region...). I tried calling preventDefault() method from onRegionOver and onRegionClick events...But it did not help... Would appreciate any help.

Please see: http://tinyurl.com/bqx6qjb

(Pre)selecting more than one country, and retrieving selected countries.

There are many situations in which one might want to select/highlight more than one country at a time (especially when first rendering the map) but this isn't possible at present as the selectedRegion property only accepts a single country code. Enhancing the property to permit multiple countries to be preselected would solve this, and I suggest that the opportunity should also be taken to name the field "selectedCountries" rather than "selectedRegions", as regions usually refer to a cluster of countries.

Similarly, one might want to use the map to select multiple countries by mouse/touch and persist the data to form field, so making "selectedCountries" a readable property would solve this, though a setting to control multiple selection mode & appropriate supporting code would also be required.

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.