Git Product home page Git Product logo

Comments (14)

bholben avatar bholben commented on May 22, 2024 17

Is there a way to use custom icon fonts rather than png files - like these http://map-icons.com/ ?

from angular-google-maps.

JanCizmar avatar JanCizmar commented on May 22, 2024 13

Is it possible to insert some marker options like size?

from angular-google-maps.

abmnukmr avatar abmnukmr commented on May 22, 2024 7

@SebastianM
You can define a custom via a custom URL like this:

<sebm-google-map-marker [iconUrl]="'http://example.com/icon.png'">
</sebm-google-map-marker>

from angular-google-maps.

Gaetane avatar Gaetane commented on May 22, 2024 2

Yes, I think it could be a good thing to add height and width to the markers. It would be useful to be able to adapt the size of the markers to the size of the screen, like on smartphones.

from angular-google-maps.

JanCizmar avatar JanCizmar commented on May 22, 2024 1

The same folder as the html file is not correct path. Try to open the developer tools > network tab in your browser and search for the location where the browser is looking for the .png file. Probably it should be located somewhere in the root of you application or in the assets or images folder.

from angular-google-maps.

devpato avatar devpato commented on May 22, 2024 1

@bholben Is this possible now? "Is there a way to use custom icon fonts rather than png files - like these http://map-icons.com/ ?"

from angular-google-maps.

TaiPhamD avatar TaiPhamD commented on May 22, 2024

can we define icon based on local path from our /assets/images/ path for example instead of an actual httpurl type?

from angular-google-maps.

bholben avatar bholben commented on May 22, 2024

@rushstrike Sure. Just make sure the path is relative to your index.html file, i.e. iconUrl="assets/images/marker.jpg"

from angular-google-maps.

khzemni avatar khzemni commented on May 22, 2024

I have an issue, when i trie to customise the marker with [iconUrl] directive it goes hidden
<sebm-google-map-marker [iconUrl]="'car.png'">

note : the png file is in the same folder as the html file

from angular-google-maps.

khzemni avatar khzemni commented on May 22, 2024

thanks :D

from angular-google-maps.

bkbaheti avatar bkbaheti commented on May 22, 2024

Is it now possible to add size?

from angular-google-maps.

fabrizziocht avatar fabrizziocht commented on May 22, 2024

#517 works for me

from angular-google-maps.

amritofficial avatar amritofficial commented on May 22, 2024

Is there a possibility to customize that image icon used as a Marker with CSS ?

from angular-google-maps.

amritofficial avatar amritofficial commented on May 22, 2024

No the custom image icons like we have an ability to do in Javascript Maps. Like this for instance https://www.google.ca/search?q=custom+marker+google+maps&rlz=1C1CHZL_enCA749CA749&source=lnms&tbm=isch&sa=X&ved=0ahUKEwiPpPiolq3aAhXQ7VMKHd1hC2sQ_AUICigB&biw=1536&bih=759#imgrc=crauu15YlnsVLM:

from angular-google-maps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.