Egypt Map#22
Conversation
|
Hello @meenanader ! |
|
Hi, Yes I have, but I cuoldn't find a place to put an example in the Repo. Is there one? Controller: GeoLocationsWidgetDemoController.$inject = ['$scope', 'config'];
function GeoLocationsWidgetDemoController ($scope, config) {
var state;
$scope.mapData = {
map:{
name : 'egypt',
defaultArea : {
attrsHover : {
fill : '#242424',
animDuration : 100
},
tooltip: {
content: function(){
return '<strong>' + state + '</strong>';
}
},
eventHandlers: {
mouseover: function(e, id){
state = id;
}
}
},
defaultPlot:{
size: 17,
attrs : {
fill : config.settings.colors['brand-warning'],
stroke : '#fff',
'stroke-width' : 0,
'stroke-linejoin' : 'round'
},
attrsHover : {
'stroke-width' : 1,
animDuration : 100
}
},
zoom : {
enabled : true,
step : 0.75,
mousewheel: false
}
},
plots:{
'EG-PTS' : {
latitude: 29.951067,
longitude: 32.518158,
size: 10,
tooltip: {content : 'EG-PTS'}
}
}
};
}HTML: <div class="mapael"
data-ui-jq="mapael"
data-ui-options="mapData">
<div class="stats">
<h5 class="text-white">GEO-LOCATIONS</h5>
</div>
</div>[EDIT]: I took the liberty to add code tag in your comment :) |
|
No, we don't have any example in this repo. I was more thinking about a JSFiddle. |
|
Here is one I just created: |
|
The quality is good! However, I notice that the map limits are way bigger than the map actual size. Check the tutorial here: http://www.vincentbroute.fr/mapael/create-map.php
|
|
I was not able to do that in fact from the SVG (as I used one of the existing SVG online), tried to narrow the height and width, but that does not help, specially the top part. |
|
As said in tutorial, it is fairly easy using Inkscape:
Then, import again your SVG. |
|
@meenanader, any update? |
I have created the Egyptian map to be added into my project, which I thought it is helpful for others to use if needed.