Web Component: j-Map
j-Map
- easy usage
path="target.property"
can contain GPS48.727903,19.157763
or textViestova 28, Banská Bystrica, Slovakia
- two way binding works with GPS (so the component returns GPS coordinates into the model when the
text
is used instead of GPS) - important: the component element (or its
CSS
) must have definedwidth
andheight
style attributes
Configuration:
key
IMPORTANT Google API keytype
(optional) has to contain a map type (roadmap
(default),satellite
,hybrid
,terrain
)draggable
(optional) for drag & drop marker (default:false
)click
(optional) has to contain a function name and this method is evaluated when the user click on the markerzoom
(optional), default13
icon
(optional) has to contain a URL to a new icon markeranimation
(optional) has to contain a animation type (bounce
anddrop
)
Methods:
component.search(lat, lng)
arguments must be numberscomponent.search(text)
arguments must be a stringcomponent.reset()
callresize
event (useful for modals)component.reset(lat, lng)
arguments must be numbers
Author
- Peter Širka petersirka@gmail.com
- License
Created
08. may 2016
Updated
31. january 2023
Version
v1
License
https://www.totaljs.com/license/
Responsive
Yes
Author
Peter Širka
Email
petersirka@gmail.com