SVG Map Markers resizing

This topic contains 1 reply, has 2 voices, and was last updated by  Stiofan O’Connor 8 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #363721

    Arni U
    Free User

    Hi there,

    when i started using the geo directory plugin, i first used custom designed png’s as map markers. In the plugins default size of 48 x 48 px the markers look horrifyingly unsharp, especially on retina screens.

    So i decided to use bigger pngs trying to scale them down to the parents element with a max-width:100% and height set to auto.
    Unfortunately this didn’t work out, as i could not find the right css class inside the css files that come along with the plugin.

    So finally i’m now using svg files as map markers together with the ‘SVG support’ plugin. This works nice in Safari, but in Chrome theres no resizing, and in firefox the icons don’t show up at all.

    I would appreciate it very much, if you could share either the css class i have to edit in order to resize bigger pngs or maybe give me a clue how to fix the problems with svg.

    Heres my projects url, if you need to have a look on how it turns out:

    http://bruecke-istanbul.com/branchen/

    Best regards and thanks in advance..

    A

    #363885

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Arni,

    This has been an issue for a while and Google maps really did not have a good solution until recently,i think we should tackle this as a GD wide issue rather than your issue directly.

    My idea would be that if a large image was uploaded then we would show it as only half size which would make it look ok on retina also.

    The other idea i have pondered with is using something like fontawesome icons but the only solutions i have seen for that include adding 0.5mb of extra JS which i am not happy about.

    Stiofan

Viewing 2 posts - 1 through 2 (of 2 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount