With the Interactive World Maps plugin you can create a World Map and display markers wherever you want. In this Example I created markers in different locations of the world, with custom colors, and I created a custom javascript action to display information about each office on click.
—————————–
UPDATE: From version 3.2.2 of the map, released on January 2013, it is not necessary to create a custom javascript action, the plugin already has a built-in option to display information below the map. You don’t need programing skills to achieve this.
The information below is obsolete, but still serves as an example on how custom actions work with this plugin.
——————————
The map is very easy to build. Check out the screenshot of the administration panel, with the configurations of this map.
(click to see it bigger)
I choose to create a ‘Custom Action’ in the Active Region Action option and placed this in the custom action field:
document.getElementById('imap29message').innerHTML = ivalue_29[selectedRegion];
This javascript snippet basically says to place inside the div ‘imap29message’ the action value of the clicked region.
On the post/page where I placed the shortcode for the map, I also created a div where the information will display. In this case, in the post, after the map shortcode, I placed:
<div id='imap29message'>Click for more information</div>
To enhance the visual of the maps further, I added some CSS to my theme, to control some aspects of the map. In this case, just a simple rule, for the mouse to turn into the pointer, when hovering the makers.
#map_canvas_29 circle {
cursor:pointer;
}
Get some tips on how to customize the maps further here.
GET THE PLUGIN, and build you own world map!
FAQ
Will this work in regions mode?
Yes. If you want to use this custom action in regions mode, where you color full regions instead of placing markers, it is possible. It’s the same procedure.
My map doesn’t display when I put that custom action!
Usually, when this happens, it’s a sintax problem. Make sure you’ve placed the correct code. A common mistake is the ‘quotes’, they often get replaced by invalid quotes in the copy/paste process. Re-write the quotes. Check this image for reference.
The map displays, but nothing happens when I click!
Make sure you are using the correct ID for you map. In the example above i used 29, but you should use you’re map’s ID. If your id=”1″, then the code would be:
document.getElementById('imap1message').innerHTML = ivalue_1[selectedRegion];
and
<div id='imap1message'>Click for more information</div>



42 Responses to “World Offices Map Information Display”
Hey Carlos,
Great plugin! This plugin is exactly what my client is looking for! It helps a great deal. I’m not super tech savy so bear with my questions if they seem dumb. Two things I need to inquire about:
I’m trying this technique where I have placed info after the map once the user clicks the marker. The same as the example on this post. It doesn’t seem to work.
my post looks like:
[show-map id='1']
Click on the markers for more information
and my custom java action in the map looks like:
document.getElementByld(‘imap1message’).innerHTML = ivalue_1[selectedRegion];
my action value is:
bla bla bla
The map id is 1 so I don’t know why it’s not working. Could it be a theme issue? I don’t know.
Please help
Hello Joe!
Glad you like the plugin!
I think you did everything right, you might just be missing the
On the post or page where you are displaying the map, when editing, change to html mode and after the shortcode for the map, add a div. It will look like this:
[show-map id='1']
<div id=”imap1message”>Click for more information</div>
(i had a typo on the div explanation, might have been that also, in case you copied it)
Let me know if it works! Cheers
Tried that. Here are some screen shots of my workflow
Sent you an email. Cheers
Thanks Carlos,
It helped me a lot. Again, great plugin!
Cheers
Hi Carlos,
Thanks for this charm plugin. I just purchased one for a client of mine. I was very excited until I got blocked in one point the map creation.
I’ve created a map Brazil-Procinces following your tutorial. Heres what happens.
Everything works fine with the shortcode. I can see the maps and the marks, just fine.
But once I put the custom javascript to the custom field the map no longer shows up at the page.
Custom Javascript field empty = maps on
Custom Javascript field filled = maps off
Do you have any clue for this? I need to finish this website this upcming thursday. I’m worried of time.
Can’t wait to hear from you.
Regards
Oi Carlos!
The usual problem, when this happens, is some sintax error, usually on the quotes or the capital I vs L in the by Id part. Check this image for reference: http://img209.imageshack.us/img209/160/sintax.jpg let me know if you were able to fix the problem. Cheers!
Hello Carlos,
Im trying to configure the map to show more information like you did on the sample: http://cmoreira.net/interactive-world-maps-demo/world-offices-map-information-display/
But its not working. In the “Preview” when I click it just opens up a popup alert screen but when I go to the font end page the map does not show.
I hope you can give me a hand.
Hello Fabrizio! check the comments above to check if your problem is the same as any of the above. If the problem persists, let me know! cheers
Hello Carlos,
I didn’t realize you had responded. I’ve check what others have done but for some reason I still cannot get it to work. The map does show but the “Additional” info that needs to appear below is not working. How can we get it to work properly
Hello Fabrizio!
Send me an email from my personal profile page at codecanyon: http://codecanyon.net/user/cmoreira and send me a link to your map and i’ll check it out.
cheers!
I can not sort data on separate lines
Hello! I didn’t understand the question, can you describe the problem a bit more? You can’t create linebreaks on the description, but you can create line breaks on the information that displays after the user clicks, putting html line breaks with the br code.
Hello!
Thank you for your prompt response.
My problem is that the field Action Value: can only set one row and when you click on the marker to see this line.
I want to be the order of 3-4 how?
You can use html code in the action value. So, to include a line break, you should include something like: line 1 <br/>line 2 <br/>line 2 .
This should work.
Thank you receive it. If you could just tell me how to do Parwan red line will be grateful.
First line of the description of the red.
This worked for me.
TEXT-HERE
How do I make the “more info” display to the right an top of a table cell. I created a table with 2 cells but the info displays at the bottom of the cell no matter what style code is used.
Hello!
Did you manage to make it work?
It should be a matter of code sintax, to get it working.
I got it to display in 2 columns for a full-page layout. It did not work using just html on the page, so I added the css code below to the theme’s style sheet and added the div to the map page. It works great. I was also able to add color and images in the Action Value.
CSS=========================
.map_wrapper{
position: relative;
float: left;
left: 0px;
width: 930px;
margin-bottom: 0px;
background-color: #ffffff
}
.map_left1{
position: relative;
float: left;
left: 0px;
width: 600px;
height: 400px;
background-color: #ffffff
}
.map_left2{
position: relative;
float: left;
top: 10px;
padding: 10px;
left: 0px;
width: 300px;
height: 400px;
background-color: #e7e7e7
}
HTML==========================
<div class="map_wrapper">
<div class="map_left1">[show-map id='1']</div>
<div class="map_left2">
<div id="imap1message" style="text-align: center;"><span style="color: #0066ff;"><strong>TITLE-TEXT-HERE</strong>
<em>displays here after state click</em></span></div>
</div>
</div>
==============================
Also, in the post above, I want to show how I made a title ‘red’. I also added 2 images in this action.
Add to Action Value:
<img src='http://www.mysite.com/image-filename1><br><b><span style='color:red'>TEXT-HERE</span></b><br><img src='http://www.mysite.com/image-filename2'><br>TEXT-HERE <br>
[note: do not use (") quote marks in the Action Value code, it will break]
Great tips! Thanks for sharing JD!
Thanks Carlos,
It helped me a lot. Again, great plugin!
Hi Carlos,
Just found your plugin, looks great! I have a question, is it possible to apply your plugin to other pictures, other than maps? For instance a round chart with different %-slices. You klick on one slice and see a popup like yours.
Regards,
Daniel
Hello Daniel!
Thank you for the positive words!
Unfortunately it is only possible to use this plugin with maps. It is not ready to work with other kind of images/graphics.
greetings
Carlos
Hi Carlos,
I bought your plugin today from code canyon, it’s great and just about perfect for what I need!
I have 2 questions for you :
1. the marker bubbles, I like being able to adjust the size of the bubble. It would be great if as well as the bubble effect you could have an option to use your favicon or another icon to mark the location. example a small car for used car lots
2. in the USA there are a lot of city’s that sit close to (or even on state lines, as an example Kansas City of KS and MO). Is it possible when you create a map of KS, that you can show the neighboring states markers (perhaps within a 50 mile arc???) this would stop the user from leaving that map to go to another map.
if I have missed these features I apologize! If not maybe they could be included in an update??
Once again, great plugin!
Cheers
Phil
Hello Phil!
Thank you for purchasing the plugin and for the positive feedback!
As for your questions:
1) about the markers:
Unfortunately it is not possible to place custom icons instead of the round markers. The plugin uses the Google Geochart API to generate the maps, and it doesn’t allow the placement of custom markers. It could be possible to change the sizes, as the API allows that, but I didn’t include that feature in my plugin. I would have to do some changes. It’s not a very requested feature, but I’ll add it anyway to the list and hopefully I’ll be able to include it in a future update.
2) about us states display:
By default the plugin already shows a little bit of the surrounding states. However it is not possible to define how much it should show. But you can place markers on the locations that show up already outside the chosen state. Again, this depends on the google geochart api features, that don’t have options of how much of the surrounding states it should show.
Hope this informations help!
let me know if you have any further question!
cheers
Carlos
Hi,
It seems to be the plugin I am looking for. Actually, I want to display the map whenever a person opens a website and then selects a location from the mark and then redirect to a new website in the same window.
The country is Pakistan and there will be only couple of city location for it. On Hovering it, I want the city name to be displayed and on clicking redirecting to a website. Is it possible with this plugin?
Hassan
Hello Hassan!
Check this example screenshot: http://awesomescreenshot.com/004xgnyce
You can display Pakistan and place markers wherever you want. You can associate Links to each marker.
Hovering each marker, a tooltip with 2 lines will display.
Hope this is what you’re looking for!
greetings
Carlos
I have bought it and How I can move the Marker?
Hello! Thanks for buying the plugin! I don’t understand what you mean by ‘move the marker’. You can place markers choosing Markers Mode in the display mode option. Then you can just write the names of the cities you want to place markers in the region code and fill in the rest of the input fields, like in the example screenshot I sent you. If you still have problems, try to be more specific in the description of the problem. I’m here to help. gretings
Carlos
Inbox you yesterday through contact form of this website. Would love to hear from you.
Thanks
Hey,
I would like to create a map of Kenya and the new counties created in 2010. Will your plug in be able to provide me that especially with the new counties?
Thanks.
Hello Tony
This is how Kenya with counties displays: http://img6.imageshack.us/img6/975/kenyaz.png
I added 2 provinces codes to serve as example taken from http://en.wikipedia.org/wiki/ISO_3166-2:KE
Does this match the latest changes?
Cheers
Carlos
Hi Carlos,
We are actually no longer using Provinces. We are using counties. Please see attached image…http://upload.wikimedia.org/wikipedia/commons/b/bf/Map_showing_Counties_underthe_new_kenyan_constitution..gif
In this case, I’m sorry, the plugin doesn’t have that counties division, only the 8 province divisions listed in the ISO_3166-2:KE list, and there is no way to add them to the plugin right now.
Oh bummer. I have already purchased the plug in:(
Depending on what you want to achieve, you can try and use the markers mode :\
HEllo Carlos,
i have the same problem as “Fabrizio”, when i click the marker i didn’t get the additional informations below the map.
I need your help
Hello Amine!
DId you select the proper ‘Active Region Action’?
Send me a message from my profile at codecanyon, with a link to your map so I can analyze it further. Thanks!
Hi there
I have a query, if i want to show the office information in 4 columns is it possible?
Thanks
Jono
Hello Jonathan!
Since the information to display can be HTML, you can build it to have the content in 4 columns:or with divs or with table html for example.
If you have any other question let me know.