-
Notifications
You must be signed in to change notification settings - Fork 153
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
mapMarker with picture inside #11
Comments
I just realized i can't manipulate the HTML to update SVG structure in Chrome ... The shape disappear if i just insert a new line without anything else |
Got SVG structure now, thanks google and http://svg-edit.googlecode.com/svn/branches/2.6/editor/svg-editor.html
So i need to add a "circle", linked with a "pattern", having an "image". Now time to go in the code. I can anticipate some works later regarding :
|
So, in function
I've added (for testing with a static image at the moment)
And in function
I've added
So i can init my map marker with option imageCircleUrl:true (for the moment. Later it will be the URL) I can see using chrome that the elements are well created, but :
At this point, any help will be welcome ! Thanks |
I'll take a look at this, but it might be a few hours. From a coding image.setAttributeNS('http://www.w3.org/1999/xlink', 'xlink:href', On Thu, Dec 12, 2013 at 9:12 AM, franck34 notifications@github.com wrote:
|
You win :)
did the trick ! |
Goal reached :) Now time to fork and share. My code fill my need but i don't think i can purpose this improvement "as is" Thanks @sfairgrieve ;) Franck |
That's awesome! It seems like your updates to support an image pattern and On Thu, Dec 12, 2013 at 10:37 AM, franck34 notifications@github.com wrote:
|
Absolutely no reservations, but a big thanks for job made by leaflet team and dvf team too ! Please review my code to be more dvf/leaflet style and i'll be happy ! |
Cool, thanks for merge. I'll probably go back in this later, because i wondering if it's possible to play with fontawesome/svg 'seem's yes according to http://stackoverflow.com/questions/18225954/use-fontawesome-icon-in-svg-without-external-files) |
I'm trying to add rounded picture inside a map marker.
The actual SVG structure of a map marker (using gradien + shadow) is :
I'm trying to add something like
without success at the moment. I've tried "as is" and inside a new included in actual without success too.
Notice i'm just starting with svg so i don't really understand what i am doing.
Is it possible ? if yes what is the way to go ? I'm looking for the good SVG structure for the moment only
Thanks for your help
In attachement, the sample i'd like to achieve
Franck
The text was updated successfully, but these errors were encountered: