-
Notifications
You must be signed in to change notification settings - Fork 139
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
Egypt Map #22
base: master
Are you sure you want to change the base?
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.