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

Map does not plot markers #350

Open
SumentsJavi opened this issue May 4, 2020 · 0 comments
Open

Map does not plot markers #350

SumentsJavi opened this issue May 4, 2020 · 0 comments

Comments

@SumentsJavi
Copy link

Using the examples of the documentation, the map does not show any markers.

The code is as follows:

<div id="myMap"></div>

<!--MAP-->
<script src="http://ci4.com/plugins/jqvmap//jquery.vmap.js"></script>
<script src="http://ci4.com/plugins/jqvmap/maps/jquery.vmap.world.js"></script>
<script>
$(function () {
$('#myMap').vectorMap({
map: 'world_en',
scaleColors: ['#C8EEFF', '#0071A4'],
color: '#5DA3CD',
backgroundColor: 'transparent',
hoverColor: '#3b8bba',
markerStyle: {
initial: {
fill: '#F8E23B',
stroke: '#383f47'
}
},
markers: [
{
latLng: [41.90, 12.45],
name: 'name_1'
},
{
latLng: [43.73, 7.41],
name: 'name_2'
},
{
latLng: [-0.52, 166.93],
name: 'name_3'
},
{
latLng: [-8.51, 179.21],
name: 'name_4'
},
{
latLng: [-8.51, 179.21],
name: 'name_5'
},
],
});
});
</script>
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