Code examples
Note
You can fork and edit all examples as you like, this will not break them.
Map
- Resizing the map
- Hosting maps in the hidden container
- Creating and deleting
- General parameters
- Map margins manager
- Creating maps on demand
User's location
GeoXML
Geoobjects
- The arrow on the map
- Circle
- Specifying images for the polyline editor
- Changing a placemark icon when hovering over it
- Adding geo objects to a collection
- Geo link
- Changing the placemark settings
- Geo object events
- Setting a custom placemark image
- Glyph icons
- Multistroke outline
- Getting the list of map objects
- Placemark
- Setting a hotspot shape of the HTML layout of the placemark
- Polygon
- Polygon editor
- Filling a polygon with the image
- Polyline
- Polyline editor
- Rectangle
GeoQuery
- Positioning the map to display geocoding results and clustering
- Loading geo data using jQuery and adding it to the map
- Searching for the nearest object.
- Filtering objects by various attributes
- Points falling within a circle
- The intersection of a route with a polygon using the example of the Moscow Ring Road
- Adding objects to the visible area of the map
Balloon and hint
- Dynamically loading balloon content
- Balloon and hint
- Custom balloon layout with autopositioning
- Balloon that goes off the map
- Placemark and balloon panel
- The layout of the placemark balloon
- The layout of the placemark hint
Behaviors and events
- Map behavior
- Subscribing to the DOM element events
- Using the dragger
- Event properties. Click coordinates
Clustering
- Layout for cluster balloon "Accordion"
- Layout for cluster balloon "Carousel"
- Layout for cluster balloon "Two columns"
- Custom cluster balloon layout
- Opening the cluster balloon with the selected object
- Creating a clusterer
- Creating a clusterer with arbitrary icons
- Changing the clusterer cell size
- Changing the color of clusters and placemarks when hovering
- Layout in the form of a pie chart
Controls
- Adding buttons to the map
- Custom button layout
- Adding individual controls
- Custom control
- Standard sets of controls
- Creating a custom drop-down list layout
- Custom layout for the zoom control
External module
Modular system
ObjectManager
- Adding objects to the map via ObjectManager
- Opening the balloon on the placemark in ObjectManager
- Loading the placemark balloon data on demand
- Event handling in objects of ObjectManager
- Filtering objects
- Adding a GeoJSON file to the map from the maps constructor
- Adding placemarks with various options and content to the ObjectManager
- Adding objects with different geometries to the map.
Panoramas
Routing
- Calculating delivery cost
- Custom layout for the multiroute balloon
- Working with the multiroute model data and events
- Building a driving multiroute
- Editing a multiroute
- Building a multiroute on public transport
- Building a pedestrian multiroute
- Working with multiroute data and events
- Configuring the view of a multiroute
- Building a route
- Editing a route
- Route to the point on the map
Search on a map
- Searching across your own objects
- Custom display for search results
- Direct geocoding
- Determining the address of a click on the map using reverse geocoding
- Reverse geocoding
- Searching for organizations
Traffic
YMapsML
- Changing the balloon content template.
- Converting GeoRSS to YMapsML
- Closed polyline
- Polyline
- Loading styles from a separate file
- Changing the map type
- Creating a menu for displaying groups of objects
- Style inheritance
- Polygon
- Setting the object style
- Displaying geocoding results
- Adding placemarks to the map
Was the article helpful?
Previous
Next