Skip to content

allow a single image to be used as a virtual shingled service #150

Open
@umbregachoong

Description

@umbregachoong

New at using this.

I did this:

$(function () {
  // create a map that replaces the default service with
  // one using a string for the src property instead of a function
  var map = $("#map").geomap({
    center: [-71.0595678, 42.3604823],
    zoom: 8,
    services: [ {
      id: "osm-string-src",
      type: "shingled",
      src: "myblahblahimage.png"
    } ]
  });
});  

However, the image is stretched, and the zoom function works briefly but does not stay zoomed.

  1. How do I get the image to render correctly without stretching- do I set the image with a height and width in an inline map style?
  2. How do I get the zoom to stay?

Thanks in advance for your help.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions